redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The PCIe errors associated with this device.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct PCIeErrors {
    /// The total number of the PCIe correctable errors for this device.
    #[serde(rename = "CorrectableErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub correctable_error_count: Option<i64>,
    /// The total number of the PCIe fatal errors for this device.
    #[serde(rename = "FatalErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fatal_error_count: Option<i64>,
    /// The total number of times the PCIe link states transitioned from L0 to the recovery state for this device.
    #[serde(rename = "L0ToRecoveryCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub l0t_recovery_count: Option<i64>,
    /// The total number of NAKs issued on the PCIe link by the receiver.
    #[serde(rename = "NAKReceivedCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nak_received_count: Option<i64>,
    /// The total number of NAKs issued on the PCIe link by this device.
    #[serde(rename = "NAKSentCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nak_sent_count: Option<i64>,
    /// The total number of the PCIe non-fatal errors for this device.
    #[serde(rename = "NonFatalErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub non_fatal_error_count: Option<i64>,
    /// The total number of the PCIe replays issued by this device.
    #[serde(rename = "ReplayCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub replay_count: Option<i64>,
    /// The total number of the PCIe replay rollovers issued by this device.
    #[serde(rename = "ReplayRolloverCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub replay_rollover_count: Option<i64>,
}

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