redfish_codegen/models/cxl_logical_device/v1_0_0/
qo_s.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The quality of service properties for this CXL logical device.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct QoS {
9    /// The bandwidth allocated for this CXL logical device in multiples of 256.
10    #[serde(rename = "AllocatedBandwidth")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub allocated_bandwidth: Option<i64>,
13    /// The bandwidth limit to this CXL logical device as a percentage.
14    #[serde(rename = "LimitPercent")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub limit_percent: Option<i64>,
17}
18
19impl crate::Metadata<'static> for QoS {
20    const JSON_SCHEMA: &'static str = "CXLLogicalDevice.v1_0_0.json";
21}