redfish_codegen/models/pcie_device/
pcie_interface.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This type describes a PCIe Interface.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[serde(untagged)]
8pub enum PCIeInterface {
9    V1_3_4(models::pcie_device::v1_3_4::PCIeInterface),
10    V1_4_2(models::pcie_device::v1_4_2::PCIeInterface),
11    V1_5_2(models::pcie_device::v1_5_2::PCIeInterface),
12    V1_6_2(models::pcie_device::v1_6_2::PCIeInterface),
13    V1_7_1(models::pcie_device::v1_7_1::PCIeInterface),
14    V1_8_1(models::pcie_device::v1_8_1::PCIeInterface),
15    V1_9_1(models::pcie_device::v1_9_1::PCIeInterface),
16    V1_10_1(models::pcie_device::v1_10_1::PCIeInterface),
17    V1_11_1(models::pcie_device::v1_11_1::PCIeInterface),
18}
19
20#[allow(clippy::derivable_impls)]
21impl Default for PCIeInterface {
22     fn default() -> PCIeInterface {
23        PCIeInterface::V1_3_4(models::pcie_device::v1_3_4::PCIeInterface::default())
24     }
25}
26
27impl crate::Metadata<'static> for PCIeInterface {
28    const JSON_SCHEMA: &'static str = "PCIeDevice.json";
29}