redfish_codegen/models/control/v1_0_1/
control_range_excerpt.rs

1// Generated by redfish-codegen. Do not modify.
2
3use crate::models;
4
5/// The Control schema describes a control point and its properties.
6#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
7#[derive(derivative::Derivative)]
8#[derivative(Default)]
9pub struct ControlRangeExcerpt {
10    /// The maximum possible setting for this control.
11    #[serde(rename = "AllowableMax")]
12    #[serde(default, skip_serializing_if = "Option::is_none")]
13    pub allowable_max: Option<f64>,
14    /// The minimum possible setting for this control.
15    #[serde(rename = "AllowableMin")]
16    #[serde(default, skip_serializing_if = "Option::is_none")]
17    pub allowable_min: Option<f64>,
18    /// The supported values for the set point.
19    #[serde(rename = "AllowableNumericValues")]
20    #[serde(default, skip_serializing_if = "Option::is_none")]
21    pub allowable_numeric_values: Option<Vec<f64>>,
22    #[serde(rename = "ControlMode")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub control_mode: Option<models::control::v1_0_1::ControlMode>,
25    /// The link to the resource that provides the data for this control.
26    #[serde(rename = "DataSourceUri")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub data_source_uri: Option<String>,
29    /// The reading of the sensor associated with this control.
30    #[serde(rename = "Reading")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub reading: Option<f64>,
33    /// The units of the sensor reading associated with this control.
34    #[serde(rename = "ReadingUnits")]
35    #[serde(default, skip_serializing_if = "Option::is_none")]
36    pub reading_units: Option<String>,
37    /// The maximum set point in the allowed range.
38    #[serde(rename = "SettingMax")]
39    #[serde(default, skip_serializing_if = "Option::is_none")]
40    pub setting_max: Option<f64>,
41    /// The minimum set point in the allowed range.
42    #[serde(rename = "SettingMin")]
43    #[serde(default, skip_serializing_if = "Option::is_none")]
44    pub setting_min: Option<f64>,
45}
46
47impl crate::Metadata<'static> for ControlRangeExcerpt {
48    const JSON_SCHEMA: &'static str = "Control.v1_0_1.json";
49}