redfish-codegen 0.3.1

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


/// The reference areas for the location of the part within an enclosure.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
pub enum Reference {
    /// This value shall indicate the part is in the top of the unit.
    Top,
    /// This value shall indicate the part is in the bottom of the unit.
    Bottom,
    /// This value shall indicate the part is in the front of the unit.
    Front,
    /// This value shall indicate the part is in the rear of the unit.
    Rear,
    /// This value shall indicate the part is on the left side of of the unit.
    Left,
    /// This value shall indicate the part is on the right side of the unit.
    Right,
    /// This value shall indicate the part is in the middle of the unit.
    Middle,
}

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

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