Skip to main content

tapis_apps/models/
notif_delivery_method.rs

1/*
2 * Tapis Applications API
3 *
4 * The Tapis Applications API provides for management of Tapis applications including permissions.
5 *
6 * The version of the OpenAPI document: 25Q4.0
7 * Contact: cicsupport@tacc.utexas.edu
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(
15    Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize, Default,
16)]
17pub enum NotifDeliveryMethod {
18    #[serde(rename = "WEBHOOK")]
19    #[default]
20    Webhook,
21    #[serde(rename = "EMAIL")]
22    Email,
23}
24
25impl std::fmt::Display for NotifDeliveryMethod {
26    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
27        match self {
28            Self::Webhook => write!(f, "WEBHOOK"),
29            Self::Email => write!(f, "EMAIL"),
30        }
31    }
32}