Skip to main content

clientapi_pve/models/
pve_cluster_sdn_inline_enum3.rs

1/*
2 * Proxmox Virtual Environment API
3 *
4 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pve.proxmox.com/pve-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 PveClusterSdnInlineEnum3 {
17    #[serde(rename = "set")]
18    Set,
19    #[serde(rename = "match")]
20    Match,
21    #[serde(rename = "call")]
22    Call,
23    #[serde(rename = "exit-action")]
24    ExitAction,
25
26}
27
28impl std::fmt::Display for PveClusterSdnInlineEnum3 {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Set => write!(f, "set"),
32            Self::Match => write!(f, "match"),
33            Self::Call => write!(f, "call"),
34            Self::ExitAction => write!(f, "exit-action"),
35        }
36    }
37}
38
39impl Default for PveClusterSdnInlineEnum3 {
40    fn default() -> PveClusterSdnInlineEnum3 {
41        Self::Set
42    }
43}
44