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 RedundancyMode {
    /// Failure of one unit automatically causes a standby or offline unit in the redundancy set to take over its functions.
    Failover,
    /// Multiple units are available and active such that normal operation will continue if one or more units fail.
    #[serde(rename = "N+m")]
    N,
    /// Multiple units contribute or share such that operation will continue, but at a reduced capacity, if one or more units fail.
    Sharing,
    /// One or more spare units are available to take over the function of a failed unit, but takeover is not automatic.
    Sparing,
    /// The subsystem is not configured in a redundancy mode, either due to configuration or the functionality has been disabled by the user. Added in version v1_3_0.
    NotRedundant,
}

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

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