redfish-codegen 0.3.1

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


/// This type describes the various controller rates used for processes such as volume rebuild or consistency checks.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Rates {
    /// The percentage of controller resources used for performing a data consistency check on volumes.
    #[serde(rename = "ConsistencyCheckRatePercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub consistency_check_rate_percent: Option<i64>,
    /// The percentage of controller resources used for rebuilding/repairing volumes.
    #[serde(rename = "RebuildRatePercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rebuild_rate_percent: Option<i64>,
    /// The percentage of controller resources used for transforming volumes from one configuration to another.
    #[serde(rename = "TransformationRatePercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transformation_rate_percent: Option<i64>,
}

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