1
0
Fork 0
mirror of https://github.com/MedzikUser/imgurs synced 2024-08-15 00:03:19 +00:00
imgurs/src/config/mod.rs
MedzikUser 60b0dc0d84
read commit description
- webhook: added url in title
- cli: change image domain to your own (set in config)
- if the configuration file cannot be open, ask the user whether to overwrite the file instead of overwriting it without asking
- logger: max_level_debug in debug binary
2022-03-10 22:02:03 +01:00

33 lines
641 B
Rust

use serde_derive::Deserialize;
pub mod toml;
#[derive(Debug, Deserialize)]
pub struct Config {
pub imgur: ConfigImgur,
pub notification: ConfigNotification,
pub clipboard: ConfigClipboard,
pub discord_webhook: ConfigDiscordWebhook,
}
#[derive(Debug, Deserialize)]
pub struct ConfigImgur {
pub id: String,
pub image_cdn: String,
}
#[derive(Debug, Deserialize)]
pub struct ConfigNotification {
pub enabled: bool,
}
#[derive(Debug, Deserialize)]
pub struct ConfigClipboard {
pub enabled: bool,
}
#[derive(Debug, Deserialize)]
pub struct ConfigDiscordWebhook {
pub enabled: bool,
pub uri: String,
}