Skip to main content

nautobot_openapi/models/
outer_unit_enum.rs

1/*
2 * API Documentation
3 *
4 * Source of truth and network automation platform
5 *
6 * The version of the OpenAPI document: 3.1.0 (3.1)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11///
12#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
13pub enum OuterUnitEnum {
14    #[serde(rename = "mm")]
15    Mm,
16    #[serde(rename = "in")]
17    In,
18}
19
20impl ToString for OuterUnitEnum {
21    fn to_string(&self) -> String {
22        match self {
23            Self::Mm => String::from("mm"),
24            Self::In => String::from("in"),
25        }
26    }
27}
28
29impl Default for OuterUnitEnum {
30    fn default() -> OuterUnitEnum {
31        Self::Mm
32    }
33}