Skip to main content

clientapi_pbs/models/
pbs_config_media_pool_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 PbsConfigMediaPoolInlineEnum {
17    #[serde(rename = "allocation")]
18    Allocation,
19    #[serde(rename = "retention")]
20    Retention,
21    #[serde(rename = "template")]
22    Template,
23    #[serde(rename = "encrypt")]
24    Encrypt,
25    #[serde(rename = "comment")]
26    Comment,
27
28}
29
30impl std::fmt::Display for PbsConfigMediaPoolInlineEnum {
31    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
32        match self {
33            Self::Allocation => write!(f, "allocation"),
34            Self::Retention => write!(f, "retention"),
35            Self::Template => write!(f, "template"),
36            Self::Encrypt => write!(f, "encrypt"),
37            Self::Comment => write!(f, "comment"),
38        }
39    }
40}
41
42impl Default for PbsConfigMediaPoolInlineEnum {
43    fn default() -> PbsConfigMediaPoolInlineEnum {
44        Self::Allocation
45    }
46}
47