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, Debug, PartialEq, Default, Serialize, Deserialize)]
pub struct PowerFeedPowerPath {
    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
    pub value: Option<Value>,
    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
    pub label: Option<Label>,
}

impl PowerFeedPowerPath {
    pub fn new() -> PowerFeedPowerPath {
        PowerFeedPowerPath {
            value: None,
            label: None,
        }
    }
}

///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Value {
    #[serde(rename = "a")]
    A,
    #[serde(rename = "b")]
    B,
}

impl Default for Value {
    fn default() -> Value {
        Self::A
    }
}
///
#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
pub enum Label {
    #[serde(rename = "Path A")]
    A,
    #[serde(rename = "Path B")]
    B,
}

impl Default for Label {
    fn default() -> Label {
        Self::A
    }
}