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 OperationalState {
    /// Memory chunk can be used.
    Online,
    /// Memory chunk cannot be used.  Consumers of this memory chunk should perform cleanup operations as needed to prepare for the removal of this memory chunk.
    Offline,
}

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

impl crate::Metadata<'static> for OperationalState {
    const JSON_SCHEMA: &'static str = "MemoryChunks.v1_5_0.json";
}