diff options
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.rs b/src/config.rs index 14a4c19..47695e3 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,11 +1,15 @@ +use crate::handlers::X500MapperConfig; use anyhow::{Context, Result}; use serde::Deserialize; use std::{fs, path::Path}; #[derive(Debug, Deserialize)] +#[serde(deny_unknown_fields)] pub struct Config { pub database_url: String, pub discord_token: String, + + pub x500_mapper: X500MapperConfig, } impl Config { |