redfish-codegen 0.3.1

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


/// The properties of this type represent IO statistics.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct IOStatistics {
    /// The time that the resource is busy processing write requests.
    #[serde(rename = "NonIORequestTime")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub non_io_request_time: Option<String>,
    /// Count of non IO requests.
    #[serde(rename = "NonIORequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub non_io_requests: Option<i64>,
    /// Count of read IO requests satisfied from memory.
    #[serde(rename = "ReadHitIORequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub read_hit_io_requests: Option<i64>,
    /// Number of kibibytes read.
    #[serde(rename = "ReadIOKiBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub read_io_ki_bytes: Option<i64>,
    /// The time that the resource is busy processing read requests.
    #[serde(rename = "ReadIORequestTime")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub read_io_request_time: Option<String>,
    /// Count of read IO requests.
    #[serde(rename = "ReadIORequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub read_io_requests: Option<i64>,
    /// Count of write IO requests coalesced into memory.
    #[serde(rename = "WriteHitIORequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub write_hit_io_requests: Option<i64>,
    /// Number of kibibytes written.
    #[serde(rename = "WriteIOKiBytes")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub write_io_ki_bytes: Option<i64>,
    /// The time that the resource is busy processing write requests.
    #[serde(rename = "WriteIORequestTime")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub write_io_request_time: Option<String>,
    /// Count of write IO requests.
    #[serde(rename = "WriteIORequests")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub write_io_requests: Option<i64>,
}

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