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;

/// This type describes coolant.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct Coolant {
    /// The name of the additive.
    #[serde(rename = "AdditiveName")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub additive_name: Option<String>,
    /// The percent additives contained in the coolant.
    #[serde(rename = "AdditivePercent")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub additive_percent: Option<f64>,
    #[serde(rename = "CoolantType")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub coolant_type: Option<models::cooling_loop::v1_0_0::CoolantType>,
    /// The density (kg/m^3) of the coolant.
    #[serde(rename = "DensityKgPerCubicMeter")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub density_kg_per_cubic_meter: Option<f64>,
    /// The rated hours of service life for this coolant.
    #[serde(rename = "RatedServiceHours")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub rated_service_hours: Option<f64>,
    /// The hours of service this coolant has provided.
    #[serde(rename = "ServiceHours")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub service_hours: Option<f64>,
    /// The date the coolant was last serviced.
    #[serde(rename = "ServicedDate")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub serviced_date: Option<String>,
    /// The specific heat capacity (kJ/(kg*K)) of the coolant.
    #[serde(rename = "SpecificHeatkJoulesPerKgK")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub specific_heatk_joules_per_kg_k: Option<f64>,
}

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