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)]
#[serde(untagged)]
pub enum VLAN {
    V1_0_9(models::vlan_network_interface::v1_0_9::VLAN),
    V1_1_5(models::vlan_network_interface::v1_1_5::VLAN),
    V1_2_0(models::vlan_network_interface::v1_2_0::VLAN),
    V1_3_0(models::vlan_network_interface::v1_3_0::VLAN),
}

#[allow(clippy::derivable_impls)]
impl Default for VLAN {
     fn default() -> VLAN {
        VLAN::V1_0_9(models::vlan_network_interface::v1_0_9::VLAN::default())
     }
}

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