Skip to main content

clientapi_pbs/models/
pbs_nodes_network_method_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 PbsNodesNetworkMethodEnum {
17    #[serde(rename = "manual")]
18    Manual,
19    #[serde(rename = "static")]
20    Static,
21    #[serde(rename = "dhcp")]
22    Dhcp,
23    #[serde(rename = "loopback")]
24    Loopback,
25
26}
27
28impl std::fmt::Display for PbsNodesNetworkMethodEnum {
29    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
30        match self {
31            Self::Manual => write!(f, "manual"),
32            Self::Static => write!(f, "static"),
33            Self::Dhcp => write!(f, "dhcp"),
34            Self::Loopback => write!(f, "loopback"),
35        }
36    }
37}
38
39impl Default for PbsNodesNetworkMethodEnum {
40    fn default() -> PbsNodesNetworkMethodEnum {
41        Self::Manual
42    }
43}
44