authentik_rust/models/
notification_transport_mode_enum.rs

1/*
2 * authentik
3 *
4 * Making authentication simple.
5 *
6 * The version of the OpenAPI document: 2024.2.1
7 * Contact: hello@goauthentik.io
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12
13/// NotificationTransportModeEnum : * `local` - authentik inbuilt notifications * `webhook` - Generic Webhook * `webhook_slack` - Slack Webhook (Slack/Discord) * `email` - Email
14/// * `local` - authentik inbuilt notifications * `webhook` - Generic Webhook * `webhook_slack` - Slack Webhook (Slack/Discord) * `email` - Email
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum NotificationTransportModeEnum {
17    #[serde(rename = "local")]
18    Local,
19    #[serde(rename = "webhook")]
20    Webhook,
21    #[serde(rename = "webhook_slack")]
22    WebhookSlack,
23    #[serde(rename = "email")]
24    Email,
25
26}
27
28impl ToString for NotificationTransportModeEnum {
29    fn to_string(&self) -> String {
30        match self {
31            Self::Local => String::from("local"),
32            Self::Webhook => String::from("webhook"),
33            Self::WebhookSlack => String::from("webhook_slack"),
34            Self::Email => String::from("email"),
35        }
36    }
37}
38
39impl Default for NotificationTransportModeEnum {
40    fn default() -> NotificationTransportModeEnum {
41        Self::Local
42    }
43}
44