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;

/// The links to other Resources that are related to this Resource.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Links {
    /// An array of links to the CXL logical devices associated with this memory domain.
    #[serde(rename = "CXLLogicalDevices")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cxl_logical_devices: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "CXLLogicalDevices@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub cxl_logical_devices_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the fabric adapters that present this memory domain to a fabric.
    #[serde(rename = "FabricAdapters")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fabric_adapters: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "FabricAdapters@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub fabric_adapters_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the media controllers for this memory domain.
    #[serde(rename = "MediaControllers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub media_controllers: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "MediaControllers@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub media_controllers_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    /// An array of links to the PCIe functions representing this memory domain.
    #[serde(rename = "PCIeFunctions")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_functions: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PCIeFunctions@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub pcie_functions_odata_count: Option<models::odata_v4::Count>,
}

impl crate::Metadata<'static> for Links {
    const JSON_SCHEMA: &'static str = "MemoryDomain.v1_5_0.json";
}