redfish-codegen 0.3.1

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

use crate::models;

/// CXL properties for a switch.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct CXL {
    /// The maximum number of Virtual CXL Switches (VCSs) supported in this switch.
    #[serde(rename = "MaxVCSsSupported")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub max_vc_ss_supported: Option<i64>,
    /// The total number of virtual PCI-to-PCI bridges (vPPBs) supported in this switch.
    #[serde(rename = "TotalNumbervPPBs")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub total_numberv_pp_bs: Option<i64>,
    #[serde(rename = "VCS")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub vcs: Option<models::switch::v1_9_1::VCSSwitch>,
}

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