redfish_codegen/models/thermal/v1_7_1/
temperature.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct Temperature {
9    #[serde(rename = "@odata.id")]
10    #[serde(skip_deserializing)]
11    pub odata_id: models::odata_v4::Id,
12    #[serde(rename = "Actions")]
13    #[serde(default, skip_serializing_if = "Option::is_none")]
14    pub actions: Option<models::thermal::v1_7_1::TemperatureActions>,
15    /// Adjusted maximum allowable operating temperature for this equipment based on the current environmental conditions present.
16    #[serde(rename = "AdjustedMaxAllowableOperatingValue")]
17    #[serde(default, skip_serializing_if = "Option::is_none")]
18    pub adjusted_max_allowable_operating_value: Option<i64>,
19    /// Adjusted minimum allowable operating temperature for this equipment based on the current environmental conditions present.
20    #[serde(rename = "AdjustedMinAllowableOperatingValue")]
21    #[serde(default, skip_serializing_if = "Option::is_none")]
22    pub adjusted_min_allowable_operating_value: Option<i64>,
23    #[serde(rename = "DeltaPhysicalContext")]
24    #[serde(default, skip_serializing_if = "Option::is_none")]
25    pub delta_physical_context: Option<models::physical_context::PhysicalContext>,
26    /// The delta temperature reading.
27    #[serde(rename = "DeltaReadingCelsius")]
28    #[serde(default, skip_serializing_if = "Option::is_none")]
29    pub delta_reading_celsius: Option<f64>,
30    /// The value at which the reading is below normal range but not yet fatal.
31    #[serde(rename = "LowerThresholdCritical")]
32    #[serde(default, skip_serializing_if = "Option::is_none")]
33    pub lower_threshold_critical: Option<f64>,
34    /// The value at which the reading is below normal range and fatal.
35    #[serde(rename = "LowerThresholdFatal")]
36    #[serde(default, skip_serializing_if = "Option::is_none")]
37    pub lower_threshold_fatal: Option<f64>,
38    /// The value at which the reading is below normal range.
39    #[serde(rename = "LowerThresholdNonCritical")]
40    #[serde(default, skip_serializing_if = "Option::is_none")]
41    pub lower_threshold_non_critical: Option<f64>,
42    /// The value at which the reading is below the user-defined range.
43    #[serde(rename = "LowerThresholdUser")]
44    #[serde(default, skip_serializing_if = "Option::is_none")]
45    pub lower_threshold_user: Option<i64>,
46    /// Maximum allowable operating temperature for this equipment.
47    #[serde(rename = "MaxAllowableOperatingValue")]
48    #[serde(default, skip_serializing_if = "Option::is_none")]
49    pub max_allowable_operating_value: Option<i64>,
50    /// Maximum value for this sensor.
51    #[serde(rename = "MaxReadingRangeTemp")]
52    #[serde(default, skip_serializing_if = "Option::is_none")]
53    pub max_reading_range_temp: Option<f64>,
54    /// The identifier for the member within the collection.
55    #[serde(rename = "MemberId")]
56    pub member_id: String,
57    /// Minimum allowable operating temperature for this equipment.
58    #[serde(rename = "MinAllowableOperatingValue")]
59    #[serde(default, skip_serializing_if = "Option::is_none")]
60    pub min_allowable_operating_value: Option<i64>,
61    /// Minimum value for this sensor.
62    #[serde(rename = "MinReadingRangeTemp")]
63    #[serde(default, skip_serializing_if = "Option::is_none")]
64    pub min_reading_range_temp: Option<f64>,
65    /// The temperature sensor name.
66    #[serde(rename = "Name")]
67    #[serde(default, skip_serializing_if = "Option::is_none")]
68    pub name: Option<String>,
69    #[serde(rename = "Oem")]
70    #[serde(default, skip_serializing_if = "Option::is_none")]
71    pub oem: Option<models::resource::Oem>,
72    #[serde(rename = "PhysicalContext")]
73    #[serde(default, skip_serializing_if = "Option::is_none")]
74    pub physical_context: Option<models::physical_context::PhysicalContext>,
75    /// The temperature in degrees Celsius.
76    #[serde(rename = "ReadingCelsius")]
77    #[serde(default, skip_serializing_if = "Option::is_none")]
78    pub reading_celsius: Option<f64>,
79    /// An array of links to resources or objects that represent areas or devices to which this temperature applies.
80    #[serde(rename = "RelatedItem")]
81    #[serde(default, skip_serializing_if = "Option::is_none")]
82    pub related_item: Option<Vec<models::odata_v4::IdRef>>,
83    #[serde(rename = "RelatedItem@odata.count")]
84    #[serde(default, skip_serializing_if = "Option::is_none")]
85    pub related_item_odata_count: Option<models::odata_v4::Count>,
86    /// The numerical identifier of the temperature sensor.
87    #[serde(rename = "SensorNumber")]
88    #[serde(default, skip_serializing_if = "Option::is_none")]
89    pub sensor_number: Option<i64>,
90    #[serde(rename = "Status")]
91    #[serde(default, skip_serializing_if = "Option::is_none")]
92    pub status: Option<models::resource::Status>,
93    /// The value at which the reading is above normal range but not yet fatal.
94    #[serde(rename = "UpperThresholdCritical")]
95    #[serde(default, skip_serializing_if = "Option::is_none")]
96    pub upper_threshold_critical: Option<f64>,
97    /// The value at which the reading is above normal range and fatal.
98    #[serde(rename = "UpperThresholdFatal")]
99    #[serde(default, skip_serializing_if = "Option::is_none")]
100    pub upper_threshold_fatal: Option<f64>,
101    /// The value at which the reading is above normal range.
102    #[serde(rename = "UpperThresholdNonCritical")]
103    #[serde(default, skip_serializing_if = "Option::is_none")]
104    pub upper_threshold_non_critical: Option<f64>,
105    /// The value at which the reading is above the user-defined range.
106    #[serde(rename = "UpperThresholdUser")]
107    #[serde(default, skip_serializing_if = "Option::is_none")]
108    pub upper_threshold_user: Option<i64>,
109}
110
111impl crate::Metadata<'static> for Temperature {
112    const JSON_SCHEMA: &'static str = "Thermal.v1_7_1.json";
113}