From bc91cdbc75b299a810da0fed2c09acf040620fbe Mon Sep 17 00:00:00 2001 From: Nathan Ringo Date: Tue, 16 Jan 2024 02:56:15 -0600 Subject: Add the student role to students. --- src/config.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/config.rs') 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 { -- cgit v1.2.3