Skip to main content

clientapi_pbs/models/
pbs_config_datastore_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 PbsConfigDatastoreInlineEnum {
17    #[serde(rename = "comment")]
18    Comment,
19    #[serde(rename = "gc-schedule")]
20    GcSchedule,
21    #[serde(rename = "gc-on-unmount")]
22    GcOnUnmount,
23    #[serde(rename = "prune-schedule")]
24    PruneSchedule,
25    #[serde(rename = "keep-last")]
26    KeepLast,
27    #[serde(rename = "keep-hourly")]
28    KeepHourly,
29    #[serde(rename = "keep-daily")]
30    KeepDaily,
31    #[serde(rename = "keep-weekly")]
32    KeepWeekly,
33    #[serde(rename = "keep-monthly")]
34    KeepMonthly,
35    #[serde(rename = "keep-yearly")]
36    KeepYearly,
37    #[serde(rename = "verify-new")]
38    VerifyNew,
39    #[serde(rename = "notify-user")]
40    NotifyUser,
41    #[serde(rename = "notify")]
42    Notify,
43    #[serde(rename = "notification-mode")]
44    NotificationMode,
45    #[serde(rename = "tuning")]
46    Tuning,
47    #[serde(rename = "maintenance-mode")]
48    MaintenanceMode,
49    #[serde(rename = "notification-thresholds")]
50    NotificationThresholds,
51    #[serde(rename = "counter-reset-schedule")]
52    CounterResetSchedule,
53
54}
55
56impl std::fmt::Display for PbsConfigDatastoreInlineEnum {
57    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
58        match self {
59            Self::Comment => write!(f, "comment"),
60            Self::GcSchedule => write!(f, "gc-schedule"),
61            Self::GcOnUnmount => write!(f, "gc-on-unmount"),
62            Self::PruneSchedule => write!(f, "prune-schedule"),
63            Self::KeepLast => write!(f, "keep-last"),
64            Self::KeepHourly => write!(f, "keep-hourly"),
65            Self::KeepDaily => write!(f, "keep-daily"),
66            Self::KeepWeekly => write!(f, "keep-weekly"),
67            Self::KeepMonthly => write!(f, "keep-monthly"),
68            Self::KeepYearly => write!(f, "keep-yearly"),
69            Self::VerifyNew => write!(f, "verify-new"),
70            Self::NotifyUser => write!(f, "notify-user"),
71            Self::Notify => write!(f, "notify"),
72            Self::NotificationMode => write!(f, "notification-mode"),
73            Self::Tuning => write!(f, "tuning"),
74            Self::MaintenanceMode => write!(f, "maintenance-mode"),
75            Self::NotificationThresholds => write!(f, "notification-thresholds"),
76            Self::CounterResetSchedule => write!(f, "counter-reset-schedule"),
77        }
78    }
79}
80
81impl Default for PbsConfigDatastoreInlineEnum {
82    fn default() -> PbsConfigDatastoreInlineEnum {
83        Self::Comment
84    }
85}
86