Skip to main content

nautobot_openapi/models/
interface_mode_choices.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 InterfaceModeChoices {
14    #[serde(rename = "access")]
15    Access,
16    #[serde(rename = "tagged")]
17    Tagged,
18    #[serde(rename = "tagged-all")]
19    TaggedAll,
20}
21
22impl ToString for InterfaceModeChoices {
23    fn to_string(&self) -> String {
24        match self {
25            Self::Access => String::from("access"),
26            Self::Tagged => String::from("tagged"),
27            Self::TaggedAll => String::from("tagged-all"),
28        }
29    }
30}
31
32impl Default for InterfaceModeChoices {
33    fn default() -> InterfaceModeChoices {
34        Self::Access
35    }
36}