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 LogicalContext {
    /// Capacity related logical context.
    Capacity,
    /// Environment related logical context.
    Environment,
    /// Network related logical context.
    Network,
    /// Performance related logical context.
    Performance,
    /// Security related logical context.
    Security,
    /// Storage related logical context.
    Storage,
}

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

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