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
 */

/// RackWidth : Rail-to-rail width (in inches)

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RackWidth {
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<i32>,
    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
    pub label: Option<Label>,
}

impl RackWidth {
    /// Rail-to-rail width (in inches)
    pub fn new() -> RackWidth {
        RackWidth {
            value: None,
            label: None,
        }
    }
}

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Label {
    #[serde(rename = "10 inches")]
    Variant10Inches,
    #[serde(rename = "19 inches")]
    Variant19Inches,
    #[serde(rename = "21 inches")]
    Variant21Inches,
    #[serde(rename = "23 inches")]
    Variant23Inches,
}

impl Default for Label {
    fn default() -> Label {
        Self::Variant10Inches
    }
}