redfish_codegen/models/storage/v1_8_3/
storage_controller_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 StorageControllerLinks {
10    /// An array of links to the endpoints that connect to this controller.
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    #[serde(rename = "Oem")]
18    #[serde(default, skip_serializing_if = "Option::is_none")]
19    pub oem: Option<models::resource::Oem>,
20    /// An array of links to the PCIe functions that the storage controller produces.
21    #[serde(rename = "PCIeFunctions")]
22    #[serde(default, skip_serializing_if = "Option::is_none")]
23    pub pcie_functions: Option<Vec<models::odata_v4::IdRef>>,
24    #[serde(rename = "PCIeFunctions@odata.count")]
25    #[serde(default, skip_serializing_if = "Option::is_none")]
26    pub pcie_functions_odata_count: Option<models::odata_v4::Count>,
27    /// An array of links to the storage services that connect to this controller.
28    #[serde(rename = "StorageServices")]
29    #[serde(default, skip_serializing_if = "Option::is_none")]
30    pub storage_services: Option<Vec<models::odata_v4::IdRef>>,
31    #[serde(rename = "StorageServices@odata.count")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub storage_services_odata_count: Option<models::odata_v4::Count>,
34}
35
36impl crate::Metadata<'static> for StorageControllerLinks {
37    const JSON_SCHEMA: &'static str = "Storage.v1_8_3.json";
38}