Skip to main content

nautobot_openapi/models/
phase_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 PhaseEnum {
14    #[serde(rename = "single-phase")]
15    SinglePhase,
16    #[serde(rename = "three-phase")]
17    ThreePhase,
18}
19
20impl ToString for PhaseEnum {
21    fn to_string(&self) -> String {
22        match self {
23            Self::SinglePhase => String::from("single-phase"),
24            Self::ThreePhase => String::from("three-phase"),
25        }
26    }
27}
28
29impl Default for PhaseEnum {
30    fn default() -> PhaseEnum {
31        Self::SinglePhase
32    }
33}