redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum ThermalDirection {
    /// This value shall indicate a chassis with the air intake generally from the front of the chassis and the air exhaust out the back of the chassis.
    FrontToBack,
    /// This value shall indicate a chassis with the air intake generally from the back of the chassis and the air exhaust out the front of the chassis.
    #[serde(rename = "BackToFront")]
    BackToF,
    /// This value shall indicate a chassis with the air exhaust out the top of the chassis.
    TopExhaust,
    /// This value shall indicate a sealed chassis with no air pathway through the chassis.
    Sealed,
}

#[allow(clippy::derivable_impls)]
impl Default for ThermalDirection {
     fn default() -> ThermalDirection {
        ThermalDirection::FrontToBack
     }
}

impl crate::Metadata<'static> for ThermalDirection {
    const JSON_SCHEMA: &'static str = "Chassis.v1_23_0.json";
}