Skip to main content

clientapi_pbs/models/
pbs_config_notifications_inline_enum3.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 PbsConfigNotificationsInlineEnum3 {
17    #[serde(rename = "author")]
18    Author,
19    #[serde(rename = "comment")]
20    Comment,
21    #[serde(rename = "disable")]
22    Disable,
23    #[serde(rename = "mailto")]
24    Mailto,
25    #[serde(rename = "mailto-user")]
26    MailtoUser,
27    #[serde(rename = "password")]
28    Password,
29    #[serde(rename = "port")]
30    Port,
31    #[serde(rename = "username")]
32    Username,
33
34}
35
36impl std::fmt::Display for PbsConfigNotificationsInlineEnum3 {
37    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
38        match self {
39            Self::Author => write!(f, "author"),
40            Self::Comment => write!(f, "comment"),
41            Self::Disable => write!(f, "disable"),
42            Self::Mailto => write!(f, "mailto"),
43            Self::MailtoUser => write!(f, "mailto-user"),
44            Self::Password => write!(f, "password"),
45            Self::Port => write!(f, "port"),
46            Self::Username => write!(f, "username"),
47        }
48    }
49}
50
51impl Default for PbsConfigNotificationsInlineEnum3 {
52    fn default() -> PbsConfigNotificationsInlineEnum3 {
53        Self::Author
54    }
55}
56