Skip to main content

clientapi_pve/models/
pve_protocol_enum.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 PveProtocolEnum {
17    #[serde(rename = "openfabric")]
18    Openfabric,
19    #[serde(rename = "ospf")]
20    Ospf,
21    #[serde(rename = "wireguard")]
22    Wireguard,
23    #[serde(rename = "bgp")]
24    Bgp,
25
26}
27
28impl std::fmt::Display for PveProtocolEnum {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Openfabric => write!(f, "openfabric"),
32            Self::Ospf => write!(f, "ospf"),
33            Self::Wireguard => write!(f, "wireguard"),
34            Self::Bgp => write!(f, "bgp"),
35        }
36    }
37}
38
39impl Default for PveProtocolEnum {
40    fn default() -> PveProtocolEnum {
41        Self::Openfabric
42    }
43}
44