diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-07-25 10:47:36 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-07-25 11:37:28 +0300 |
commit | ad881807180977c9346f3cfd42c9c5f51913e04e (patch) | |
tree | 35306f2cdb9f5c18446732fe242057bfaaae3d0c /src | |
parent | 07ff0dbb7d126b18b690ae5d43366733d4c80134 (diff) | |
download | vmadm-ad881807180977c9346f3cfd42c9c5f51913e04e.tar.gz |
feat: do not allow unknown fields in the config
Sponsored-by: author
Diffstat (limited to 'src')
-rw-r--r-- | src/config.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 0ff251a..7a38942 100644 --- a/src/config.rs +++ b/src/config.rs @@ -9,6 +9,7 @@ use std::path::{Path, PathBuf}; /// Configuration from configuration file. #[derive(Default, Debug, Deserialize, Serialize)] +#[serde(deny_unknown_fields)] pub struct Configuration { /// Base image, if provided. pub default_base_image: Option<PathBuf>, |