mirror of https://github.com/MedzikUser/imgurs
34 lines
641 B
Rust
34 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,
|
|
}
|