redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.

use crate::models;

/// The attributes of a VLAN.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct VLAN {
    /// An indication of whether this VLAN is tagged or untagged for this interface.
    #[serde(rename = "Tagged")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub tagged: Option<bool>,
    /// An indication of whether this VLAN is enabled for this VLAN network interface.
    #[serde(rename = "VLANEnable")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vlan_enable: Option<bool>,
    #[serde(rename = "VLANId")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vlan_id: Option<models::vlan_network_interface::v1_3_0::VLANId>,
    #[serde(rename = "VLANPriority")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vlan_priority: Option<models::vlan_network_interface::v1_3_0::VLANPriority>,
}

impl crate::Metadata<'static> for VLAN {
    const JSON_SCHEMA: &'static str = "VLanNetworkInterface.v1_3_0.json";
}