redfish_codegen/models/fabric_adapter/v1_5_1/
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 endpoints that represent the logical fabric connection to this fabric adapter.
11    #[serde(rename = "Endpoints")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
14    #[serde(rename = "Endpoints@odata.count")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub endpoints_odata_count: Option<models::odata_v4::Count>,
17    /// An array of links to the memory domains associated with this fabric adapter.
18    #[serde(rename = "MemoryDomains")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub memory_domains: Option<Vec<models::odata_v4::IdRef>>,
21    #[serde(rename = "MemoryDomains@odata.count")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub memory_domains_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    /// An array of links to the PCIe devices associated with this fabric adapter.
28    #[serde(rename = "PCIeDevices")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub pcie_devices: Option<Vec<models::odata_v4::IdRef>>,
31    #[serde(rename = "PCIeDevices@odata.count")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub pcie_devices_odata_count: Option<models::odata_v4::Count>,
34    /// An array of links to the processors that this fabric adapter provides to a fabric.
35    #[serde(rename = "Processors")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub processors: Option<Vec<models::odata_v4::IdRef>>,
38    #[serde(rename = "Processors@odata.count")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub processors_odata_count: Option<models::odata_v4::Count>,
41}
42
43impl crate::Metadata<'static> for Links {
44    const JSON_SCHEMA: &'static str = "FabricAdapter.v1_5_1.json";
45}