redfish_codegen/models/manager_diagnostic_data/v1_2_0/
i2cb_statistics.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The statistics of an I2C bus.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct I2CBStatistics {
9    /// The number of bus errors on this I2C bus.
10    #[serde(rename = "BusErrorCount")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub bus_error_count: Option<i64>,
13    /// The name of the I2C bus.
14    #[serde(rename = "I2CBusName")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub i2cb_name: Option<String>,
17    /// The number of NACKs on this I2C bus.
18    #[serde(rename = "NACKCount")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub nack_count: Option<i64>,
21    /// The total number of transactions on this I2C bus.
22    #[serde(rename = "TotalTransactionCount")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub total_transaction_count: Option<i64>,
25}
26
27impl crate::Metadata<'static> for I2CBStatistics {
28    const JSON_SCHEMA: &'static str = "ManagerDiagnosticData.v1_2_0.json";
29}