Skip to main content

nautobot_openapi/models/
frequency_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 FrequencyEnum {
14    #[serde(rename = "2.4GHz")]
15    Variant2Period4Ghz,
16    #[serde(rename = "5GHz")]
17    Variant5Ghz,
18    #[serde(rename = "6GHz")]
19    Variant6Ghz,
20}
21
22impl ToString for FrequencyEnum {
23    fn to_string(&self) -> String {
24        match self {
25            Self::Variant2Period4Ghz => String::from("2.4GHz"),
26            Self::Variant5Ghz => String::from("5GHz"),
27            Self::Variant6Ghz => String::from("6GHz"),
28        }
29    }
30}
31
32impl Default for FrequencyEnum {
33    fn default() -> FrequencyEnum {
34        Self::Variant2Period4Ghz
35    }
36}