redfish_codegen/models/redundancy/v1_3_6/redundancy_mode.rs
1// Generated by redfish-codegen. Do not modify.
2
3
4#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
5pub enum RedundancyMode {
6 /// Failure of one unit automatically causes a standby or offline unit in the redundancy set to take over its functions.
7 Failover,
8 /// Multiple units are available and active such that normal operation will continue if one or more units fail.
9 #[serde(rename = "N+m")]
10 N,
11 /// Multiple units contribute or share such that operation will continue, but at a reduced capacity, if one or more units fail.
12 Sharing,
13 /// One or more spare units are available to take over the function of a failed unit, but takeover is not automatic.
14 Sparing,
15 /// 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.
16 NotRedundant,
17}
18
19#[allow(clippy::derivable_impls)]
20impl Default for RedundancyMode {
21 fn default() -> RedundancyMode {
22 RedundancyMode::Failover
23 }
24}
25
26impl crate::Metadata<'static> for RedundancyMode {
27 const JSON_SCHEMA: &'static str = "Redundancy.v1_3_6.json";
28}