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 {
    /// Any array of links to chassis at the other end of the connection.
    #[serde(rename = "ConnectedChassis")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub connected_chassis: Option<Vec<models::odata_v4::IdRef>>,
    #[serde(rename = "ConnectedChassis@odata.count")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub connected_chassis_odata_count: Option<models::odata_v4::Count>,
    #[serde(rename = "ConnectedCoolingLoop")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub connected_cooling_loop: Option<models::odata_v4::IdRef>,
    #[serde(rename = "ConnectedCoolingUnit")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub connected_cooling_unit: Option<models::odata_v4::IdRef>,
    #[serde(rename = "Oem")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub oem: Option<models::resource::Oem>,
}

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