redfish_codegen/models/processor/v1_18_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    #[serde(rename = "Chassis")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub chassis: Option<models::odata_v4::IdRef>,
13    /// An array of links to the processors directly connected to this processor.
14    #[serde(rename = "ConnectedProcessors")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub connected_processors: Option<Vec<models::odata_v4::IdRef>>,
17    #[serde(rename = "ConnectedProcessors@odata.count")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub connected_processors_odata_count: Option<models::odata_v4::Count>,
20    /// An array of links to the endpoints that connect to this processor.
21    #[serde(rename = "Endpoints")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub endpoints: Option<Vec<models::odata_v4::IdRef>>,
24    #[serde(rename = "Endpoints@odata.count")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub endpoints_odata_count: Option<models::odata_v4::Count>,
27    /// An array of links to the fabric adapters that present this processor to a fabric.
28    #[serde(rename = "FabricAdapters")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub fabric_adapters: Option<Vec<models::odata_v4::IdRef>>,
31    #[serde(rename = "FabricAdapters@odata.count")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub fabric_adapters_odata_count: Option<models::odata_v4::Count>,
34    #[serde(rename = "GraphicsController")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub graphics_controller: Option<models::odata_v4::IdRef>,
37    /// An array of links to the memory associated with this processor.
38    #[serde(rename = "Memory")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub memory: Option<Vec<models::odata_v4::IdRef>>,
41    #[serde(rename = "Memory@odata.count")]
42    #[serde(default, skip_serializing_if = "Option::is_none")]
43    pub memory_odata_count: Option<models::odata_v4::Count>,
44    /// The network device functions to which this processor performs offload computation, such as with a SmartNIC.
45    #[serde(rename = "NetworkDeviceFunctions")]
46    #[serde(default, skip_serializing_if = "Option::is_none")]
47    pub network_device_functions: Option<Vec<models::odata_v4::IdRef>>,
48    #[serde(rename = "NetworkDeviceFunctions@odata.count")]
49    #[serde(default, skip_serializing_if = "Option::is_none")]
50    pub network_device_functions_odata_count: Option<models::odata_v4::Count>,
51    #[serde(rename = "Oem")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub oem: Option<models::resource::Oem>,
54    #[serde(rename = "PCIeDevice")]
55    #[serde(default, skip_serializing_if = "Option::is_none")]
56    pub pcie_device: Option<models::odata_v4::IdRef>,
57    /// An array of links to the PCIeFunctions associated with this processor.
58    #[serde(rename = "PCIeFunctions")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub pcie_functions: Option<Vec<models::odata_v4::IdRef>>,
61    #[serde(rename = "PCIeFunctions@odata.count")]
62    #[serde(default, skip_serializing_if = "Option::is_none")]
63    pub pcie_functions_odata_count: Option<models::odata_v4::Count>,
64}
65
66impl crate::Metadata<'static> for Links {
67    const JSON_SCHEMA: &'static str = "Processor.v1_18_0.json";
68}