redfish-codegen 0.3.1

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


/// The type of rack unit in use.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum RackUnits {
    /// Rack units shall be specified in terms of the Open Compute Open Rack Specification.
    OpenU,
    /// Rack units shall conform to the EIA-310 standard.
    #[serde(rename = "EIA_310")]
    EIA310,
}

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

impl crate::Metadata<'static> for RackUnits {
    const JSON_SCHEMA: &'static str = "Resource.v1_15_0.json";
}