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

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