netbox_openapi/models/
vlan_qinq_role.rs

1/*
2 * NetBox REST API
3 *
4 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5 *
6 * The version of the OpenAPI document: 4.4.2-Docker-3.4.1 (4.4)
7 *
8 * Generated by: https://openapi-generator.tech
9 */
10
11#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
12pub struct VlanQinqRole {
13    /// * `svlan` - Service * `cvlan` - Customer
14    #[serde(rename = "value", skip_serializing_if = "Option::is_none")]
15    pub value: Option<Value>,
16    #[serde(rename = "label", skip_serializing_if = "Option::is_none")]
17    pub label: Option<Label>,
18}
19
20impl VlanQinqRole {
21    pub fn new() -> VlanQinqRole {
22        VlanQinqRole {
23            value: None,
24            label: None,
25        }
26    }
27}
28
29/// * `svlan` - Service * `cvlan` - Customer
30#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
31pub enum Value {
32    #[serde(rename = "svlan")]
33    Svlan,
34    #[serde(rename = "cvlan")]
35    Cvlan,
36    #[serde(rename = "null")]
37    Null,
38}
39
40impl Default for Value {
41    fn default() -> Value {
42        Self::Svlan
43    }
44}
45///
46#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)]
47pub enum Label {
48    #[serde(rename = "Service")]
49    Service,
50    #[serde(rename = "Customer")]
51    Customer,
52}
53
54impl Default for Label {
55    fn default() -> Label {
56        Self::Service
57    }
58}