redfish_codegen/models/memory_chunks/v1_5_0/
links.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The links to other resources that are related to this resource.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Links {
10    /// An array of links to the CXL logical devices associated with this memory chunk.
11    #[serde(rename = "CXLLogicalDevices")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub cxl_logical_devices: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "CXLLogicalDevices@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub cxl_logical_devices_odata_count: Option<models::odata_v4::Count>,
17    /// An array of links to the endpoints that connect to this memory chunk.
18    #[serde(rename = "Endpoints")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
21    #[serde(rename = "Endpoints@odata.count")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub endpoints_odata_count: Option<models::odata_v4::Count>,
24    #[serde(rename = "Oem")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub oem: Option<models::resource::Oem>,
27}
28
29impl crate::Metadata<'static> for Links {
30    const JSON_SCHEMA: &'static str = "MemoryChunks.v1_5_0.json";
31}