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 LogLevelEnum {
    #[serde(rename = "debug")]
    Debug,
    #[serde(rename = "info")]
    Info,
    #[serde(rename = "success")]
    Success,
    #[serde(rename = "warning")]
    Warning,
    #[serde(rename = "failure")]
    Failure,
    #[serde(rename = "error")]
    Error,
    #[serde(rename = "critical")]
    Critical,
}

impl ToString for LogLevelEnum {
    fn to_string(&self) -> String {
        match self {
            Self::Debug => String::from("debug"),
            Self::Info => String::from("info"),
            Self::Success => String::from("success"),
            Self::Warning => String::from("warning"),
            Self::Failure => String::from("failure"),
            Self::Error => String::from("error"),
            Self::Critical => String::from("critical"),
        }
    }
}

impl Default for LogLevelEnum {
    fn default() -> LogLevelEnum {
        Self::Debug
    }
}