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 electrical buses in this power domain.
    #[serde(rename = "ElectricalBuses")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub electrical_buses: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "ElectricalBuses@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub electrical_buses_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the floor power distribution units in this power domain.
    #[serde(rename = "FloorPDUs")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub floor_pd_us: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "FloorPDUs@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub floor_pd_us_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the managers responsible for managing this power domain.
    #[serde(rename = "ManagedBy")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub managed_by: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "ManagedBy@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub managed_by_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 power shelves in this power domain.
    #[serde(rename = "PowerShelves")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_shelves: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PowerShelves@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_shelves_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the rack-level power distribution units in this power domain.
    #[serde(rename = "RackPDUs")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rack_pd_us: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "RackPDUs@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rack_pd_us_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the switchgear in this power domain.
    #[serde(rename = "Switchgear")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub switchgear: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "Switchgear@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub switchgear_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the transfer switches in this power domain.
    #[serde(rename = "TransferSwitches")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transfer_switches: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "TransferSwitches@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub transfer_switches_odata_count: Option<models::odata_v4::Count>,
}

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