pub trait NotificationChannel: Send + Sync {
// Required methods
fn send_notification(&self, alert: &Alert) -> Result<()>;
fn get_channel_type(&self) -> String;
}Expand description
Notification channel trait
pub trait NotificationChannel: Send + Sync {
// Required methods
fn send_notification(&self, alert: &Alert) -> Result<()>;
fn get_channel_type(&self) -> String;
}Notification channel trait