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 endpoints associated with this CXL logical device.
    #[serde(rename = "Endpoints")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Endpoints@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub endpoints_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the memory chunks owned by this CXL logical device.
    #[serde(rename = "MemoryChunks")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_chunks: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "MemoryChunks@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_chunks_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the memory domains associated with this CXL logical device.
    #[serde(rename = "MemoryDomains")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_domains: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "MemoryDomains@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_domains_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 assigned to this CXL logical device.
    #[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 = "CXLLogicalDevice.v1_0_0.json";
}