Skip to main content

nautobot_openapi/models/
standard_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 StandardEnum {
14    #[serde(rename = "802.11a")]
15    Variant11a,
16    #[serde(rename = "802.11b")]
17    Variant11b,
18    #[serde(rename = "802.11g")]
19    Variant11g,
20    #[serde(rename = "802.11n")]
21    Variant11n,
22    #[serde(rename = "802.11ac")]
23    Variant11ac,
24    #[serde(rename = "802.11ax")]
25    Variant11ax,
26    #[serde(rename = "802.11be")]
27    Variant11be,
28}
29
30impl ToString for StandardEnum {
31    fn to_string(&self) -> String {
32        match self {
33            Self::Variant11a => String::from("802.11a"),
34            Self::Variant11b => String::from("802.11b"),
35            Self::Variant11g => String::from("802.11g"),
36            Self::Variant11n => String::from("802.11n"),
37            Self::Variant11ac => String::from("802.11ac"),
38            Self::Variant11ax => String::from("802.11ax"),
39            Self::Variant11be => String::from("802.11be"),
40        }
41    }
42}
43
44impl Default for StandardEnum {
45    fn default() -> StandardEnum {
46        Self::Variant11a
47    }
48}