about summary refs log tree commit diff
path: root/fun/paroxysm/src/cfg.rs
blob: 76afb9c651a7914a9a82a3f35ad0a26537f2b4f5 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
use std::collections::HashSet;
use serde_derive::Deserialize; // TODO(tazjin): move away from serde_derive

#[derive(Deserialize)]
pub struct Config {
    pub database_url: String,
    pub irc_config_path: String,
    #[serde(default)]
    pub admins: HashSet<String>,
    #[serde(default)]
    pub log_filter: Option<String>,
}