Skip to main content

nautobot_openapi/models/
failover_strategy_enum.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11///
12#[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}