From 4078963c9e188fb4f50d458d26125b1a5ecec1fe Mon Sep 17 00:00:00 2001 From: alemi Date: Tue, 2 Jan 2024 04:55:13 +0100 Subject: [PATCH] fix: add config.rs should have pushed this before oops --- src/config.rs | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 src/config.rs diff --git a/src/config.rs b/src/config.rs new file mode 100644 index 0000000..a15b806 --- /dev/null +++ b/src/config.rs @@ -0,0 +1,28 @@ + + +#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)] +pub struct Config { + pub overrides: ConfigOverrides, + + pub notifiers: Vec, +} + +#[derive(Debug, Clone, Default, serde::Serialize, serde::Deserialize)] +pub struct ConfigOverrides { + pub author: Option, + + pub public: Option, + + pub date: Option, +} + +#[derive(Debug, Clone, serde::Serialize, serde::Deserialize)] +pub enum ConfigNotifier { + ConsoleNotifier, + + #[cfg(feature = "telegram")] + TelegramNotifier { + token: String, + chat_id: i64, + }, +}