redfish_codegen/models/sensor/v1_7_0/
sensor_voltage_excerpt.rs

1// Generated by redfish-codegen. Do not modify.
2
3
4/// The Sensor schema describes a sensor and its properties.
5#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
6#[derive(derivative::Derivative)]
7#[derivative(Default)]
8pub struct SensorVoltageExcerpt {
9    /// The crest factor for this sensor.
10    #[serde(rename = "CrestFactor")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub crest_factor: Option<f64>,
13    /// The link to the resource that provides the data for this sensor.
14    #[serde(rename = "DataSourceUri")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub data_source_uri: Option<String>,
17    /// The sensor value.
18    #[serde(rename = "Reading")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub reading: Option<f64>,
21    /// The total harmonic distortion (THD).
22    #[serde(rename = "THDPercent")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub thd_percent: Option<f64>,
25}
26
27impl crate::Metadata<'static> for SensorVoltageExcerpt {
28    const JSON_SCHEMA: &'static str = "Sensor.v1_7_0.json";
29}