clientapi-pbs 2026.5.24

Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
Documentation
/*
 * Proxmox Backup Server API
 *
 * Generated from apidoc.js. NOT an official Proxmox specification. See https://pbs.proxmox.com/docs/api-viewer/ for the upstream documentation.
 *
 * The version of the OpenAPI document: 9.x
 * 
 * Generated by: https://openapi-generator.tech
 */

use crate::models;
use serde::{Deserialize, Serialize};

/// 
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PbsNodesNetworkInlineEnum {
    #[serde(rename = "cidr")]
    Cidr,
    #[serde(rename = "cidr6")]
    Cidr6,
    #[serde(rename = "gateway")]
    Gateway,
    #[serde(rename = "gateway6")]
    Gateway6,
    #[serde(rename = "method")]
    Method,
    #[serde(rename = "method6")]
    Method6,
    #[serde(rename = "comments")]
    Comments,
    #[serde(rename = "comments6")]
    Comments6,
    #[serde(rename = "mtu")]
    Mtu,
    #[serde(rename = "autostart")]
    Autostart,
    #[serde(rename = "bridge_ports")]
    BridgePorts,
    #[serde(rename = "bridge_vlan_aware")]
    BridgeVlanAware,
    #[serde(rename = "slaves")]
    Slaves,
    #[serde(rename = "bond-primary")]
    BondPrimary,
    #[serde(rename = "bond_xmit_hash_policy")]
    BondXmitHashPolicy,

}

impl std::fmt::Display for PbsNodesNetworkInlineEnum {
    fn fmt(&self, f: &mut std::fmt::Formatter) -> std::fmt::Result {
        match self {
            Self::Cidr => write!(f, "cidr"),
            Self::Cidr6 => write!(f, "cidr6"),
            Self::Gateway => write!(f, "gateway"),
            Self::Gateway6 => write!(f, "gateway6"),
            Self::Method => write!(f, "method"),
            Self::Method6 => write!(f, "method6"),
            Self::Comments => write!(f, "comments"),
            Self::Comments6 => write!(f, "comments6"),
            Self::Mtu => write!(f, "mtu"),
            Self::Autostart => write!(f, "autostart"),
            Self::BridgePorts => write!(f, "bridge_ports"),
            Self::BridgeVlanAware => write!(f, "bridge_vlan_aware"),
            Self::Slaves => write!(f, "slaves"),
            Self::BondPrimary => write!(f, "bond-primary"),
            Self::BondXmitHashPolicy => write!(f, "bond_xmit_hash_policy"),
        }
    }
}

impl Default for PbsNodesNetworkInlineEnum {
    fn default() -> PbsNodesNetworkInlineEnum {
        Self::Cidr
    }
}