diff options
author | Nathan Ringo <nathan@remexre.com> | 2024-01-16 02:56:15 -0600 |
---|---|---|
committer | Nathan Ringo <nathan@remexre.com> | 2024-01-16 02:56:15 -0600 |
commit | bc91cdbc75b299a810da0fed2c09acf040620fbe (patch) | |
tree | 82aa637c13c1ccf5deb1e408775d31b1829972db /src/config.rs | |
parent | 485753f30af12dcfc1bb528c6d6279cb15f1089b (diff) |
Add the student role to students.
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 { |