Skip to main content

nautobot_openapi/models/
interface_mode.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#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct InterfaceMode {
13    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
14    pub value: Option<Value>,
15    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
16    pub label: Option<Label>,
17}
18
19impl InterfaceMode {
20    pub fn new() -> InterfaceMode {
21        InterfaceMode {
22            value: None,
23            label: None,
24        }
25    }
26}
27
28///
29#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
30pub enum Value {
31    #[serde(rename = "access")]
32    Access,
33    #[serde(rename = "tagged")]
34    Tagged,
35    #[serde(rename = "tagged-all")]
36    TaggedAll,
37}
38
39impl Default for Value {
40    fn default() -> Value {
41        Self::Access
42    }
43}
44///
45#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
46pub enum Label {
47    #[serde(rename = "Access")]
48    Access,
49    #[serde(rename = "Tagged")]
50    Tagged,
51    #[serde(rename = "Tagged (All)")]
52    TaggedLeftParenthesisAllRightParenthesis,
53}
54
55impl Default for Label {
56    fn default() -> Label {
57        Self::Access
58    }
59}