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 MediaLocation {
    /// The memory chunk was created using local media.
    Local,
    /// The memory chunk was created using remote media accessible through a fabric.
    Remote,
    /// The memory chunk was created using both local media and remote media accessible through a fabric.
    Mixed,
}

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

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