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

/// 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,
        }
    }
}
