'Enable deny_unknown_fields for all config structs

This commit is contained in:
2022-12-12 15:10:00 +01:00
parent 6e79dd318a
commit 7d131bbacf

View File

@@ -33,6 +33,7 @@ pub struct ConfigTrees {
}
#[derive(Debug, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
pub struct ConfigProviderFilter {
pub access: Option<bool>,
pub owner: Option<bool>,
@@ -41,6 +42,7 @@ pub struct ConfigProviderFilter {
}
#[derive(Debug, Serialize, Deserialize)]
#[serde(deny_unknown_fields)]
pub struct ConfigProvider {
pub provider: RemoteProvider,
pub token_command: String,