redfish_codegen/models/pcie_device/
pcie_errors.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The PCIe errors associated with this device.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[serde(untagged)]
8pub enum PCIeErrors {
9    V1_8_1(models::pcie_device::v1_8_1::PCIeErrors),
10    V1_9_1(models::pcie_device::v1_9_1::PCIeErrors),
11    V1_10_1(models::pcie_device::v1_10_1::PCIeErrors),
12    V1_11_1(models::pcie_device::v1_11_1::PCIeErrors),
13}
14
15#[allow(clippy::derivable_impls)]
16impl Default for PCIeErrors {
17     fn default() -> PCIeErrors {
18        PCIeErrors::V1_8_1(models::pcie_device::v1_8_1::PCIeErrors::default())
19     }
20}
21
22impl crate::Metadata<'static> for PCIeErrors {
23    const JSON_SCHEMA: &'static str = "PCIeDevice.json";
24}