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,
|
2022-02-25 17:24:24 +00:00
|
|
|
pub clipboard: ConfigClipboard,
|
2022-01-24 22:15:55 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct ConfigImgur {
|
|
|
|
pub id: String,
|
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct ConfigNotification {
|
|
|
|
pub enabled: bool,
|
|
|
|
}
|
2022-02-25 17:24:24 +00:00
|
|
|
|
|
|
|
#[derive(Debug, Deserialize)]
|
|
|
|
pub struct ConfigClipboard {
|
|
|
|
pub enabled: bool,
|
|
|
|
}
|