pub enum NotificationChannel {
Email {
smtp_server: String,
smtp_port: u16,
username: String,
password: String,
from_address: String,
to_addresses: Vec<String>,
use_tls: bool,
},
Webhook {
url: String,
method: String,
headers: HashMap<String, String>,
template: String,
timeout_secs: u64,
},
Slack {
webhook_url: String,
channel: String,
username: Option<String>,
icon_emoji: Option<String>,
},
PagerDuty {
integration_key: String,
service_name: String,
},
Console {
use_colors: bool,
},
}
Expand description
Notification channel types
Variants§
Trait Implementations§
Source§impl Clone for NotificationChannel
impl Clone for NotificationChannel
Source§fn clone(&self) -> NotificationChannel
fn clone(&self) -> NotificationChannel
Returns a duplicate of the value. Read more
1.0.0 · 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 NotificationChannel
impl Debug for NotificationChannel
Source§impl<'de> Deserialize<'de> for NotificationChannel
impl<'de> Deserialize<'de> for NotificationChannel
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 NotificationChannel
impl RefUnwindSafe for NotificationChannel
impl Send for NotificationChannel
impl Sync for NotificationChannel
impl Unpin for NotificationChannel
impl UnwindSafe for NotificationChannel
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