mirror of
https://github.com/soywod/himalaya.git
synced 2024-07-05 17:15:12 +00:00
deny unknown fields on toml account config
This commit is contained in:
parent
7eba3a5186
commit
2342a83d0d
|
@ -25,7 +25,7 @@ use crate::{
|
||||||
|
|
||||||
/// Represents all existing kind of account config.
|
/// Represents all existing kind of account config.
|
||||||
#[derive(Clone, Debug, Default, Eq, PartialEq, Deserialize, Serialize)]
|
#[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 struct TomlAccountConfig {
|
||||||
pub default: Option<bool>,
|
pub default: Option<bool>,
|
||||||
pub email: String,
|
pub email: String,
|
||||||
|
|
Loading…
Reference in a new issue