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;

/// This type describes a PCIe Interface.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum PCIeInterface {
    V1_3_4(models::pcie_device::v1_3_4::PCIeInterface),
    V1_4_2(models::pcie_device::v1_4_2::PCIeInterface),
    V1_5_2(models::pcie_device::v1_5_2::PCIeInterface),
    V1_6_2(models::pcie_device::v1_6_2::PCIeInterface),
    V1_7_1(models::pcie_device::v1_7_1::PCIeInterface),
    V1_8_1(models::pcie_device::v1_8_1::PCIeInterface),
    V1_9_1(models::pcie_device::v1_9_1::PCIeInterface),
    V1_10_1(models::pcie_device::v1_10_1::PCIeInterface),
    V1_11_1(models::pcie_device::v1_11_1::PCIeInterface),
}

#[allow(clippy::derivable_impls)]
impl Default for PCIeInterface {
     fn default() -> PCIeInterface {
        PCIeInterface::V1_3_4(models::pcie_device::v1_3_4::PCIeInterface::default())
     }
}

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