/*
 * 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 LengthUnitEnum {
    #[serde(rename = "km")]
    Km,
    #[serde(rename = "m")]
    M,
    #[serde(rename = "cm")]
    Cm,
    #[serde(rename = "mi")]
    Mi,
    #[serde(rename = "ft")]
    Ft,
    #[serde(rename = "in")]
    In,
}

impl ToString for LengthUnitEnum {
    fn to_string(&self) -> String {
        match self {
            Self::Km => String::from("km"),
            Self::M => String::from("m"),
            Self::Cm => String::from("cm"),
            Self::Mi => String::from("mi"),
            Self::Ft => String::from("ft"),
            Self::In => String::from("in"),
        }
    }
}

impl Default for LengthUnitEnum {
    fn default() -> LengthUnitEnum {
        Self::Km
    }
}
