redfish_codegen/models/sensor/v1_5_1/
sensor_energy_kwh_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 SensorEnergykWhExcerpt {
9    /// Apparent energy (kVAh).
10    #[serde(rename = "ApparentkVAh")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub apparentk_v_ah: 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 total accumulation value for this sensor.
18    #[serde(rename = "LifetimeReading")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub lifetime_reading: Option<f64>,
21    /// Reactive energy (kVARh).
22    #[serde(rename = "ReactivekVARh")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub reactivek_va_rh: Option<f64>,
25    /// The sensor value.
26    #[serde(rename = "Reading")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub reading: Option<f64>,
29    /// The date and time when the time-based properties were last reset.
30    #[serde(rename = "SensorResetTime")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub sensor_reset_time: Option<String>,
33}
34
35impl crate::Metadata<'static> for SensorEnergykWhExcerpt {
36    const JSON_SCHEMA: &'static str = "Sensor.v1_5_1.json";
37}