redfish-codegen 0.3.1

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


/// The physical metrics for Serial Attached SCSI (SAS).
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SAS {
    /// The number of invalid dwords that have been received by the phy outside of phy reset sequences.
    #[serde(rename = "InvalidDwordCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub invalid_dword_count: Option<i64>,
    /// The number of times the phy has restarted the link reset sequence because it lost dword synchronization.
    #[serde(rename = "LossOfDwordSynchronizationCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub loss_of_dword_synchronization_count: Option<i64>,
    /// The number of dwords containing running disparity errors that have been received by the phy outside of phy reset sequences.
    #[serde(rename = "RunningDisparityErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub running_disparity_error_count: Option<i64>,
}

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