pub enum NotifyChannel {
Telegram {
chat_id: String,
},
Slack {
webhook_url: String,
},
Webhook {
url: String,
method: String,
},
Nats {
subject: String,
},
Email {
to: String,
},
}Expand description
Notification channel for NotifySource.
Variants§
Telegram
Telegram notification.
Slack
Slack notification via webhook.
Webhook
Generic HTTP webhook notification.
Nats
NATS publication.
Email notification.
Trait Implementations§
Source§impl Clone for NotifyChannel
impl Clone for NotifyChannel
Source§fn clone(&self) -> NotifyChannel
fn clone(&self) -> NotifyChannel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for NotifyChannel
impl Debug for NotifyChannel
Source§impl<'de> Deserialize<'de> for NotifyChannel
impl<'de> Deserialize<'de> for NotifyChannel
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 Freeze for NotifyChannel
impl RefUnwindSafe for NotifyChannel
impl Send for NotifyChannel
impl Sync for NotifyChannel
impl Unpin for NotifyChannel
impl UnsafeUnpin for NotifyChannel
impl UnwindSafe for NotifyChannel
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