Skip to main content

clientapi_pbs/models/
pbs_nodes_apt_handle_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 PbsNodesAptHandleEnum {
17    #[serde(rename = "enterprise")]
18    Enterprise,
19    #[serde(rename = "no-subscription")]
20    NoSubscription,
21    #[serde(rename = "test")]
22    Test,
23    #[serde(rename = "ceph-squid-enterprise")]
24    CephSquidEnterprise,
25    #[serde(rename = "ceph-squid-no-subscription")]
26    CephSquidNoSubscription,
27    #[serde(rename = "ceph-squid-test")]
28    CephSquidTest,
29
30}
31
32impl std::fmt::Display for PbsNodesAptHandleEnum {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::Enterprise => write!(f, "enterprise"),
36            Self::NoSubscription => write!(f, "no-subscription"),
37            Self::Test => write!(f, "test"),
38            Self::CephSquidEnterprise => write!(f, "ceph-squid-enterprise"),
39            Self::CephSquidNoSubscription => write!(f, "ceph-squid-no-subscription"),
40            Self::CephSquidTest => write!(f, "ceph-squid-test"),
41        }
42    }
43}
44
45impl Default for PbsNodesAptHandleEnum {
46    fn default() -> PbsNodesAptHandleEnum {
47        Self::Enterprise
48    }
49}
50