nautobot-openapi 0.4.0

low level nautobot bindings (generated by openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum WirelessNetworkModeChoices {
    #[serde(rename = "Central")]
    Central,
    #[serde(rename = "Fabric")]
    Fabric,
    #[serde(rename = "Standalone (Autonomous)")]
    StandaloneLeftParenthesisAutonomousRightParenthesis,
    #[serde(rename = "Local (Flex)")]
    LocalLeftParenthesisFlexRightParenthesis,
    #[serde(rename = "Mesh")]
    Mesh,
    #[serde(rename = "Bridge")]
    Bridge,
}

impl ToString for WirelessNetworkModeChoices {
    fn to_string(&self) -> String {
        match self {
            Self::Central => String::from("Central"),
            Self::Fabric => String::from("Fabric"),
            Self::StandaloneLeftParenthesisAutonomousRightParenthesis => {
                String::from("Standalone (Autonomous)")
            }
            Self::LocalLeftParenthesisFlexRightParenthesis => String::from("Local (Flex)"),
            Self::Mesh => String::from("Mesh"),
            Self::Bridge => String::from("Bridge"),
        }
    }
}

impl Default for WirelessNetworkModeChoices {
    fn default() -> WirelessNetworkModeChoices {
        Self::Central
    }
}