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 PCIe errors associated with this device.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[serde(untagged)]
pub enum PCIeErrors {
    V1_8_1(models::pcie_device::v1_8_1::PCIeErrors),
    V1_9_1(models::pcie_device::v1_9_1::PCIeErrors),
    V1_10_1(models::pcie_device::v1_10_1::PCIeErrors),
    V1_11_1(models::pcie_device::v1_11_1::PCIeErrors),
}

#[allow(clippy::derivable_impls)]
impl Default for PCIeErrors {
     fn default() -> PCIeErrors {
        PCIeErrors::V1_8_1(models::pcie_device::v1_8_1::PCIeErrors::default())
     }
}

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