redfish_codegen/models/port_metrics/v1_4_0/
sas.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The physical metrics for Serial Attached SCSI (SAS).
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct SAS {
9    /// The number of invalid dwords that have been received by the phy outside of phy reset sequences.
10    #[serde(rename = "InvalidDwordCount")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub invalid_dword_count: Option<i64>,
13    /// The number of times the phy has restarted the link reset sequence because it lost dword synchronization.
14    #[serde(rename = "LossOfDwordSynchronizationCount")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub loss_of_dword_synchronization_count: Option<i64>,
17    /// The number of dwords containing running disparity errors that have been received by the phy outside of phy reset sequences.
18    #[serde(rename = "RunningDisparityErrorCount")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub running_disparity_error_count: Option<i64>,
21}
22
23impl crate::Metadata<'static> for SAS {
24    const JSON_SCHEMA: &'static str = "PortMetrics.v1_4_0.json";
25}