nautobot-openapi 0.4.0

low level nautobot bindings (generated by openapi-generator)
Documentation
/*
 * API Documentation
 *
 * Source of truth and network automation platform
 *
 * The version of the OpenAPI document: 3.1.0 (3.1)
 *
 * Generated by: https://openapi-generator.tech
 */

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum SubdeviceRoleEnum {
    #[serde(rename = "parent")]
    Parent,
    #[serde(rename = "child")]
    Child,
    #[serde(rename = "parent-child")]
    ParentChild,
}

impl ToString for SubdeviceRoleEnum {
    fn to_string(&self) -> String {
        match self {
            Self::Parent => String::from("parent"),
            Self::Child => String::from("child"),
            Self::ParentChild => String::from("parent-child"),
        }
    }
}

impl Default for SubdeviceRoleEnum {
    fn default() -> SubdeviceRoleEnum {
        Self::Parent
    }
}