netbox_openapi/models/
available_vlan.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/// AvailableVlan : Representation of a VLAN which does not exist in the database.
12
13#[derive(Clone, Debug, PartialEq, Default, Serialize, Deserialize)]
14pub struct AvailableVlan {
15    #[serde(rename = "vid", skip_serializing_if = "Option::is_none")]
16    pub vid: Option<i32>,
17    #[serde(
18        rename = "group",
19        default,
20        with = "::serde_with::rust::double_option",
21        skip_serializing_if = "Option::is_none"
22    )]
23    pub group: Option<Option<Box<crate::models::BriefVlanGroup>>>,
24}
25
26impl AvailableVlan {
27    /// Representation of a VLAN which does not exist in the database.
28    pub fn new() -> AvailableVlan {
29        AvailableVlan {
30            vid: None,
31            group: None,
32        }
33    }
34}