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 {
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
    #[serde(rename = "Outlet")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub outlet: Option<models::odata_v4::IdRef>,
    /// An array of links to the outlets that provide power to this power supply.
    #[serde(rename = "PowerOutlets")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_outlets: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PowerOutlets@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub power_outlets_odata_count: Option<models::odata_v4::Count>,
    /// An array of links to the chassis that are directly powered by this power supply.
    #[serde(rename = "PoweringChassis")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub powering_chassis: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "PoweringChassis@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub powering_chassis_odata_count: Option<models::odata_v4::Count>,
}

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