Skip to main content

clientapi_pbs/models/
pbs_config_notifications_inline_enum2.rs

1/*
2 * Proxmox Backup Server API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
5 *
6 * The version of the OpenAPI document: 9.x
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14/// 
15#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
16pub enum PbsConfigNotificationsInlineEnum2 {
17    #[serde(rename = "author")]
18    Author,
19    #[serde(rename = "comment")]
20    Comment,
21    #[serde(rename = "disable")]
22    Disable,
23    #[serde(rename = "from-address")]
24    FromAddress,
25    #[serde(rename = "mailto")]
26    Mailto,
27    #[serde(rename = "mailto-user")]
28    MailtoUser,
29
30}
31
32impl std::fmt::Display for PbsConfigNotificationsInlineEnum2 {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::Author => write!(f, "author"),
36            Self::Comment => write!(f, "comment"),
37            Self::Disable => write!(f, "disable"),
38            Self::FromAddress => write!(f, "from-address"),
39            Self::Mailto => write!(f, "mailto"),
40            Self::MailtoUser => write!(f, "mailto-user"),
41        }
42    }
43}
44
45impl Default for PbsConfigNotificationsInlineEnum2 {
46    fn default() -> PbsConfigNotificationsInlineEnum2 {
47        Self::Author
48    }
49}
50