redfish_codegen/models/vlan_network_interface/v1_3_0/
vlan.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The attributes of a VLAN.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct VLAN {
10    /// An indication of whether this VLAN is tagged or untagged for this interface.
11    #[serde(rename = "Tagged")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub tagged: Option<bool>,
14    /// An indication of whether this VLAN is enabled for this VLAN network interface.
15    #[serde(rename = "VLANEnable")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub vlan_enable: Option<bool>,
18    #[serde(rename = "VLANId")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub vlan_id: Option<models::vlan_network_interface::v1_3_0::VLANId>,
21    #[serde(rename = "VLANPriority")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub vlan_priority: Option<models::vlan_network_interface::v1_3_0::VLANPriority>,
24}
25
26impl crate::Metadata<'static> for VLAN {
27    const JSON_SCHEMA: &'static str = "VLanNetworkInterface.v1_3_0.json";
28}