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 managers heated by this heater.
    #[serde(rename = "Managers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub managers: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Managers@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub managers_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the memory devices heated by this heater.
    #[serde(rename = "Memory")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Memory@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub memory_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the network adapters heated by this heater.
    #[serde(rename = "NetworkAdapters")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_adapters: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "NetworkAdapters@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub network_adapters_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 processors heated by this heater.
    #[serde(rename = "Processors")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processors: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Processors@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub processors_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the storage controllers heated by this heater.
    #[serde(rename = "StorageControllers")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controllers: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "StorageControllers@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub storage_controllers_odata_count: Option<models::odata_v4::Count>,
}

impl crate::Metadata<'static> for Links {
    const JSON_SCHEMA: &'static str = "Heater.v1_0_0.json";
}