redfish_codegen/models/pcie_device/v1_11_1/
cxl_device.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The CXL-specific properties of a PCIe device.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct CXLDevice {
10    #[serde(rename = "DeviceType")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub device_type: Option<models::pcie_device::v1_11_1::CXLDeviceType>,
13    /// Indicates whether the CXL device supports egress port congestion management.
14    #[serde(rename = "EgressPortCongestionSupport")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub egress_port_congestion_support: Option<bool>,
17    /// The maximum number of logical devices supported by this CXL device.
18    #[serde(rename = "MaxNumberLogicalDevices")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub max_number_logical_devices: Option<f64>,
21    /// Indicates whether the CXL device supports throughput reduction.
22    #[serde(rename = "ThroughputReductionSupport")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub throughput_reduction_support: Option<bool>,
25    /// The timestamp set on the CXL device.
26    #[serde(rename = "Timestamp")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub timestamp: Option<String>,
29}
30
31impl crate::Metadata<'static> for CXLDevice {
32    const JSON_SCHEMA: &'static str = "PCIeDevice.v1_11_1.json";
33}