redfish_codegen/models/redundancy/v1_2_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}
16
17#[allow(clippy::derivable_impls)]
18impl Default for RedundancyMode {
19 fn default() -> RedundancyMode {
20 RedundancyMode::Failover
21 }
22}
23
24impl crate::Metadata<'static> for RedundancyMode {
25 const JSON_SCHEMA: &'static str = "Redundancy.v1_2_6.json";
26}