nautobot_openapi/models/
interface_mode_choices.rs1#[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}