summaryrefslogtreecommitdiff
path: root/webhook/src/config.rs
blob: eead97b12225786ac20c5dc3f783091be6b79101 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
use serde::Deserialize;

#[derive(Debug, Deserialize, Clone, Default)]
pub struct ServerSettings {
    pub port: u16,
    pub address: String,
}

#[derive(Debug, Deserialize, Clone, Default)]
pub struct Discord {
    pub public_key: String,
    pub client_id: u32,
}

#[derive(Debug, Deserialize, Clone, Default)]
pub struct Config {
    pub server: ServerSettings,
    pub discord: Discord,
}