redfish-codegen 0.3.1

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


/// The statistics of an I2C bus.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct I2CBStatistics {
    /// The number of bus errors on this I2C bus.
    #[serde(rename = "BusErrorCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub bus_error_count: Option<i64>,
    /// The name of the I2C bus.
    #[serde(rename = "I2CBusName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub i2cb_name: Option<String>,
    /// The number of NACKs on this I2C bus.
    #[serde(rename = "NACKCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub nack_count: Option<i64>,
    /// The total number of transactions on this I2C bus.
    #[serde(rename = "TotalTransactionCount")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total_transaction_count: Option<i64>,
}

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