Skip to main content

clientapi_pbs/models/
pbs_config_notifications_inline_enum5.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 PbsConfigNotificationsInlineEnum5 {
17    #[serde(rename = "comment")]
18    Comment,
19    #[serde(rename = "disable")]
20    Disable,
21    #[serde(rename = "invert-match")]
22    InvertMatch,
23    #[serde(rename = "match-calendar")]
24    MatchCalendar,
25    #[serde(rename = "match-field")]
26    MatchField,
27    #[serde(rename = "match-severity")]
28    MatchSeverity,
29    #[serde(rename = "mode")]
30    Mode,
31    #[serde(rename = "target")]
32    Target,
33
34}
35
36impl std::fmt::Display for PbsConfigNotificationsInlineEnum5 {
37    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
38        match self {
39            Self::Comment => write!(f, "comment"),
40            Self::Disable => write!(f, "disable"),
41            Self::InvertMatch => write!(f, "invert-match"),
42            Self::MatchCalendar => write!(f, "match-calendar"),
43            Self::MatchField => write!(f, "match-field"),
44            Self::MatchSeverity => write!(f, "match-severity"),
45            Self::Mode => write!(f, "mode"),
46            Self::Target => write!(f, "target"),
47        }
48    }
49}
50
51impl Default for PbsConfigNotificationsInlineEnum5 {
52    fn default() -> PbsConfigNotificationsInlineEnum5 {
53        Self::Comment
54    }
55}
56