deny unknown fields on toml account config

This commit is contained in:
Clément DOUIN
2024-01-15 22:34:30 +01:00
parent 7eba3a5186
commit 2342a83d0d
+1 -1
View File
@@ -25,7 +25,7 @@ use crate::{
/// Represents all existing kind of account config.
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
#[serde(rename_all = "kebab-case")]
#[serde(rename_all = "kebab-case", deny_unknown_fields)]
pub struct TomlAccountConfig {
pub default: Option<bool>,
pub email: String,