redfish_codegen/models/cooling_loop/v1_0_0/
coolant.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// This type describes coolant.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct Coolant {
10    /// The name of the additive.
11    #[serde(rename = "AdditiveName")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub additive_name: Option<String>,
14    /// The percent additives contained in the coolant.
15    #[serde(rename = "AdditivePercent")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub additive_percent: Option<f64>,
18    #[serde(rename = "CoolantType")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub coolant_type: Option<models::cooling_loop::v1_0_0::CoolantType>,
21    /// The density (kg/m^3) of the coolant.
22    #[serde(rename = "DensityKgPerCubicMeter")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub density_kg_per_cubic_meter: Option<f64>,
25    /// The rated hours of service life for this coolant.
26    #[serde(rename = "RatedServiceHours")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub rated_service_hours: Option<f64>,
29    /// The hours of service this coolant has provided.
30    #[serde(rename = "ServiceHours")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub service_hours: Option<f64>,
33    /// The date the coolant was last serviced.
34    #[serde(rename = "ServicedDate")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub serviced_date: Option<String>,
37    /// The specific heat capacity (kJ/(kg*K)) of the coolant.
38    #[serde(rename = "SpecificHeatkJoulesPerKgK")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub specific_heatk_joules_per_kg_k: Option<f64>,
41}
42
43impl crate::Metadata<'static> for Coolant {
44    const JSON_SCHEMA: &'static str = "CoolingLoop.v1_0_0.json";
45}