Skip to main content

clientapi_pbs/models/
pbs_config_notifications_inline_enum4.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 PbsConfigNotificationsInlineEnum4 {
17    #[serde(rename = "comment")]
18    Comment,
19    #[serde(rename = "disable")]
20    Disable,
21    #[serde(rename = "header")]
22    Header,
23    #[serde(rename = "body")]
24    Body,
25    #[serde(rename = "secret")]
26    Secret,
27
28}
29
30impl std::fmt::Display for PbsConfigNotificationsInlineEnum4 {
31    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
32        match self {
33            Self::Comment => write!(f, "comment"),
34            Self::Disable => write!(f, "disable"),
35            Self::Header => write!(f, "header"),
36            Self::Body => write!(f, "body"),
37            Self::Secret => write!(f, "secret"),
38        }
39    }
40}
41
42impl Default for PbsConfigNotificationsInlineEnum4 {
43    fn default() -> PbsConfigNotificationsInlineEnum4 {
44        Self::Comment
45    }
46}
47