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 MemoryClassification {
    /// Volatile memory.
    Volatile,
    /// Byte-accessible persistent memory.
    ByteAccessiblePersistent,
    /// Block-accessible memory.
    Block,
}

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

impl crate::Metadata<'static> for MemoryClassification {
    const JSON_SCHEMA: &'static str = "Memory.v1_17_1.json";
}