redfish_codegen/models/sensor/v1_0_9/
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    /// The link to the resource that provides the data for this sensor.
10    #[serde(rename = "DataSourceUri")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub data_source_uri: Option<String>,
13    /// The sensor value.
14    #[serde(rename = "Reading")]
15    #[serde(default, skip_serializing_if = "Option::is_none")]
16    pub reading: Option<f64>,
17    /// The date and time when the time-based properties were last reset.
18    #[serde(rename = "SensorResetTime")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub sensor_reset_time: Option<String>,
21}
22
23impl crate::Metadata<'static> for SensorEnergykWhExcerpt {
24    const JSON_SCHEMA: &'static str = "Sensor.v1_0_9.json";
25}