nautobot_openapi/models/
failover_strategy_enum.rs1#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum FailoverStrategyEnum {
14 #[serde(rename = "active-active")]
15 Active,
16 #[serde(rename = "active-passive")]
17 Passive,
18}
19
20impl ToString for FailoverStrategyEnum {
21 fn to_string(&self) -> String {
22 match self {
23 Self::Active => String::from("active-active"),
24 Self::Passive => String::from("active-passive"),
25 }
26 }
27}
28
29impl Default for FailoverStrategyEnum {
30 fn default() -> FailoverStrategyEnum {
31 Self::Active
32 }
33}