Skip to main content

clientapi_pbs/models/
pbs_config_access_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 PbsConfigAccessInlineEnum {
17    #[serde(rename = "client-key")]
18    ClientKey,
19    #[serde(rename = "comment")]
20    Comment,
21    #[serde(rename = "default")]
22    Default,
23    #[serde(rename = "autocreate")]
24    Autocreate,
25    #[serde(rename = "scopes")]
26    Scopes,
27    #[serde(rename = "prompt")]
28    Prompt,
29    #[serde(rename = "acr-values")]
30    AcrValues,
31
32}
33
34impl std::fmt::Display for PbsConfigAccessInlineEnum {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        match self {
37            Self::ClientKey => write!(f, "client-key"),
38            Self::Comment => write!(f, "comment"),
39            Self::Default => write!(f, "default"),
40            Self::Autocreate => write!(f, "autocreate"),
41            Self::Scopes => write!(f, "scopes"),
42            Self::Prompt => write!(f, "prompt"),
43            Self::AcrValues => write!(f, "acr-values"),
44        }
45    }
46}
47
48impl Default for PbsConfigAccessInlineEnum {
49    fn default() -> PbsConfigAccessInlineEnum {
50        Self::ClientKey
51    }
52}
53