nautobot-openapi 0.2.0

low level nautobot bindings (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 2.4.20 (2.4)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum PhaseEnum {
    #[serde(rename = "single-phase")]
    SinglePhase,
    #[serde(rename = "three-phase")]
    ThreePhase,
}

impl ToString for PhaseEnum {
    fn to_string(&self) -> String {
        match self {
            Self::SinglePhase => String::from("single-phase"),
            Self::ThreePhase => String::from("three-phase"),
        }
    }
}

impl Default for PhaseEnum {
    fn default() -> PhaseEnum {
        Self::SinglePhase
    }
}