pub enum NotifierConfig {
Slack {
webhook_url: String,
},
Discord {
webhook_url: String,
},
Webhook {
url: String,
method: Option<String>,
headers: Option<HashMap<String, String>>,
},
Smtp {
host: String,
port: u16,
username: String,
password: String,
from: String,
to: Vec<String>,
},
}Expand description
Channel-specific configuration for a notifier.
Variants§
Slack
Slack incoming webhook configuration.
Discord
Discord webhook configuration.
Webhook
Generic HTTP webhook configuration.
Fields
Smtp
SMTP email configuration.
Trait Implementations§
Source§impl Clone for NotifierConfig
impl Clone for NotifierConfig
Source§fn clone(&self) -> NotifierConfig
fn clone(&self) -> NotifierConfig
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 ComposeSchema for NotifierConfig
impl ComposeSchema for NotifierConfig
Source§impl Debug for NotifierConfig
impl Debug for NotifierConfig
Source§impl<'de> Deserialize<'de> for NotifierConfig
impl<'de> Deserialize<'de> for NotifierConfig
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
Source§impl Serialize for NotifierConfig
impl Serialize for NotifierConfig
Auto Trait Implementations§
impl Freeze for NotifierConfig
impl RefUnwindSafe for NotifierConfig
impl Send for NotifierConfig
impl Sync for NotifierConfig
impl Unpin for NotifierConfig
impl UnsafeUnpin for NotifierConfig
impl UnwindSafe for NotifierConfig
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