Skip to main content

clientapi_pbs/models/
pbs_nodes_subscription_status_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 PbsNodesSubscriptionStatusEnum {
17    #[serde(rename = "new")]
18    New,
19    #[serde(rename = "notfound")]
20    Notfound,
21    #[serde(rename = "active")]
22    Active,
23    #[serde(rename = "invalid")]
24    Invalid,
25    #[serde(rename = "expired")]
26    Expired,
27    #[serde(rename = "suspended")]
28    Suspended,
29
30}
31
32impl std::fmt::Display for PbsNodesSubscriptionStatusEnum {
33    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
34        match self {
35            Self::New => write!(f, "new"),
36            Self::Notfound => write!(f, "notfound"),
37            Self::Active => write!(f, "active"),
38            Self::Invalid => write!(f, "invalid"),
39            Self::Expired => write!(f, "expired"),
40            Self::Suspended => write!(f, "suspended"),
41        }
42    }
43}
44
45impl Default for PbsNodesSubscriptionStatusEnum {
46    fn default() -> PbsNodesSubscriptionStatusEnum {
47        Self::New
48    }
49}
50