'Enable deny_unknown_fields for all config structs
This commit is contained in:
@@ -33,6 +33,7 @@ pub struct ConfigTrees {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct ConfigProviderFilter {
|
pub struct ConfigProviderFilter {
|
||||||
pub access: Option<bool>,
|
pub access: Option<bool>,
|
||||||
pub owner: Option<bool>,
|
pub owner: Option<bool>,
|
||||||
@@ -41,6 +42,7 @@ pub struct ConfigProviderFilter {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize)]
|
#[derive(Debug, Serialize, Deserialize)]
|
||||||
|
#[serde(deny_unknown_fields)]
|
||||||
pub struct ConfigProvider {
|
pub struct ConfigProvider {
|
||||||
pub provider: RemoteProvider,
|
pub provider: RemoteProvider,
|
||||||
pub token_command: String,
|
pub token_command: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user