pub struct TelegramNotifyConfig {
pub bot_token: String,
pub chat_id: String,
pub api_base_url: String,
pub parse_mode: Option<String>,
pub disable_web_page_preview: Option<bool>,
pub timeout: Duration,
pub message: Option<String>,
pub min_severity: Option<Severity>,
pub active_window: Option<ActiveWindowConfigDetail>,
pub silence: Option<SilenceConfigDetail>,
}Expand description
Telegram notify configuration
Fields§
§bot_token: StringBot token
chat_id: StringTarget chat ID
api_base_url: StringOptional API base URL (for testing or proxies)
parse_mode: Option<String>Optional parse mode (MarkdownV2, HTML)
disable_web_page_preview: Option<bool>Disable link previews
timeout: DurationRequest timeout
message: Option<String>Optional message template
min_severity: Option<Severity>Minimum severity level to send (filters lower severity notifications)
active_window: Option<ActiveWindowConfigDetail>Optional active window config
silence: Option<SilenceConfigDetail>Optional silence config
Trait Implementations§
Source§impl Clone for TelegramNotifyConfig
impl Clone for TelegramNotifyConfig
Source§impl Debug for TelegramNotifyConfig
impl Debug for TelegramNotifyConfig
Source§impl<'de> Deserialize<'de> for TelegramNotifyConfig
impl<'de> Deserialize<'de> for TelegramNotifyConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Forget for TelegramNotifyConfig
impl Freeze for TelegramNotifyConfig
impl RefUnwindSafe for TelegramNotifyConfig
impl Send for TelegramNotifyConfig
impl Sync for TelegramNotifyConfig
impl Unpin for TelegramNotifyConfig
impl UnsafeUnpin for TelegramNotifyConfig
impl UnwindSafe for TelegramNotifyConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more