Skip to main content

clientapi_pbs/models/
pbs_nodes_config_inline_enum.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 PbsNodesConfigInlineEnum {
17    #[serde(rename = "acme")]
18    Acme,
19    #[serde(rename = "acmedomain0")]
20    Acmedomain0,
21    #[serde(rename = "acmedomain1")]
22    Acmedomain1,
23    #[serde(rename = "acmedomain2")]
24    Acmedomain2,
25    #[serde(rename = "acmedomain3")]
26    Acmedomain3,
27    #[serde(rename = "acmedomain4")]
28    Acmedomain4,
29    #[serde(rename = "http-proxy")]
30    HttpProxy,
31    #[serde(rename = "email-from")]
32    EmailFrom,
33    #[serde(rename = "ciphers-tls-1.3")]
34    CiphersTls13,
35    #[serde(rename = "ciphers-tls-1.2")]
36    CiphersTls12,
37    #[serde(rename = "default-lang")]
38    DefaultLang,
39    #[serde(rename = "description")]
40    Description,
41    #[serde(rename = "task-log-max-days")]
42    TaskLogMaxDays,
43    #[serde(rename = "consent-text")]
44    ConsentText,
45
46}
47
48impl std::fmt::Display for PbsNodesConfigInlineEnum {
49    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
50        match self {
51            Self::Acme => write!(f, "acme"),
52            Self::Acmedomain0 => write!(f, "acmedomain0"),
53            Self::Acmedomain1 => write!(f, "acmedomain1"),
54            Self::Acmedomain2 => write!(f, "acmedomain2"),
55            Self::Acmedomain3 => write!(f, "acmedomain3"),
56            Self::Acmedomain4 => write!(f, "acmedomain4"),
57            Self::HttpProxy => write!(f, "http-proxy"),
58            Self::EmailFrom => write!(f, "email-from"),
59            Self::CiphersTls13 => write!(f, "ciphers-tls-1.3"),
60            Self::CiphersTls12 => write!(f, "ciphers-tls-1.2"),
61            Self::DefaultLang => write!(f, "default-lang"),
62            Self::Description => write!(f, "description"),
63            Self::TaskLogMaxDays => write!(f, "task-log-max-days"),
64            Self::ConsentText => write!(f, "consent-text"),
65        }
66    }
67}
68
69impl Default for PbsNodesConfigInlineEnum {
70    fn default() -> PbsNodesConfigInlineEnum {
71        Self::Acme
72    }
73}
74