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

#[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>,
}