Skip to main content

clientapi_pbs/models/
pbs_config_traffic_control_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 PbsConfigTrafficControlInlineEnum {
17    #[serde(rename = "rate-in")]
18    RateIn,
19    #[serde(rename = "burst-in")]
20    BurstIn,
21    #[serde(rename = "rate-out")]
22    RateOut,
23    #[serde(rename = "burst-out")]
24    BurstOut,
25    #[serde(rename = "comment")]
26    Comment,
27    #[serde(rename = "timeframe")]
28    Timeframe,
29    #[serde(rename = "users")]
30    Users,
31
32}
33
34impl std::fmt::Display for PbsConfigTrafficControlInlineEnum {
35    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
36        match self {
37            Self::RateIn => write!(f, "rate-in"),
38            Self::BurstIn => write!(f, "burst-in"),
39            Self::RateOut => write!(f, "rate-out"),
40            Self::BurstOut => write!(f, "burst-out"),
41            Self::Comment => write!(f, "comment"),
42            Self::Timeframe => write!(f, "timeframe"),
43            Self::Users => write!(f, "users"),
44        }
45    }
46}
47
48impl Default for PbsConfigTrafficControlInlineEnum {
49    fn default() -> PbsConfigTrafficControlInlineEnum {
50        Self::RateIn
51    }
52}
53