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
No known key found for this signature in database
GPG key ID: 353E4A18EE0FAB72

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,