1
2
3
4
5
6
7
8
9
use schematic::{validate, Config};

/// Configures how and where notifications are sent.
#[derive(Clone, Config, Debug)]
pub struct NotifierConfig {
    /// A secure URL in which to send webhooks to.
    #[setting(validate = validate::url_secure)]
    pub webhook_url: Option<String>,
}