redfish-codegen 0.3.1

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


/// The quality of service properties for this CXL logical device.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct QoS {
    /// The bandwidth allocated for this CXL logical device in multiples of 256.
    #[serde(rename = "AllocatedBandwidth")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub allocated_bandwidth: Option<i64>,
    /// The bandwidth limit to this CXL logical device as a percentage.
    #[serde(rename = "LimitPercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub limit_percent: Option<i64>,
}

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