Skip to main content

clientapi_pbs/models/
pbs_config_metrics_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 PbsConfigMetricsInlineEnum {
17    #[serde(rename = "enable")]
18    Enable,
19    #[serde(rename = "token")]
20    Token,
21    #[serde(rename = "bucket")]
22    Bucket,
23    #[serde(rename = "organization")]
24    Organization,
25    #[serde(rename = "max-body-size")]
26    MaxBodySize,
27    #[serde(rename = "verify-tls")]
28    VerifyTls,
29    #[serde(rename = "comment")]
30    Comment,
31
32}
33
34impl std::fmt::Display for PbsConfigMetricsInlineEnum {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        match self {
37            Self::Enable => write!(f, "enable"),
38            Self::Token => write!(f, "token"),
39            Self::Bucket => write!(f, "bucket"),
40            Self::Organization => write!(f, "organization"),
41            Self::MaxBodySize => write!(f, "max-body-size"),
42            Self::VerifyTls => write!(f, "verify-tls"),
43            Self::Comment => write!(f, "comment"),
44        }
45    }
46}
47
48impl Default for PbsConfigMetricsInlineEnum {
49    fn default() -> PbsConfigMetricsInlineEnum {
50        Self::Enable
51    }
52}
53