imgurs/src/config/mod.rs

20 lines
335 B
Rust
Raw Normal View History

2022-01-24 22:15:55 +00:00
use serde_derive::Deserialize;
2022-01-22 21:02:51 +00:00
pub mod toml;
2022-01-24 22:15:55 +00:00
#[derive(Debug, Deserialize)]
pub struct Config {
pub imgur: ConfigImgur,
pub notification: ConfigNotification,
}
#[derive(Debug, Deserialize)]
pub struct ConfigImgur {
pub id: String,
}
#[derive(Debug, Deserialize)]
pub struct ConfigNotification {
pub enabled: bool,
}