nautobot-openapi 0.1.1

low level nautobot bindings (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 2.4.20 (2.4)
 *
 * Generated by: https://openapi-generator.tech
 */

/// RackUnit : A rack unit is an abstraction formed by the set (rack, position, face); it does not exist as a row in the database.

#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct RackUnit {
    #[serde(rename = "id", skip_serializing_if = "Option::is_none")]
    pub id: Option<i32>,
    #[serde(rename = "name", skip_serializing_if = "Option::is_none")]
    pub name: Option<String>,
    #[serde(rename = "face", skip_serializing_if = "Option::is_none")]
    pub face: Option<Box<crate::models::RackUnitFace>>,
    #[serde(rename = "occupied", skip_serializing_if = "Option::is_none")]
    pub occupied: Option<bool>,
}

impl RackUnit {
    /// A rack unit is an abstraction formed by the set (rack, position, face); it does not exist as a row in the database.
    pub fn new() -> RackUnit {
        RackUnit {
            id: None,
            name: None,
            face: None,
            occupied: None,
        }
    }
}