redfish_codegen/models/sensor/v1_5_1/
sensor_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 SensorExcerpt {
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}
18
19impl crate::Metadata<'static> for SensorExcerpt {
20    const JSON_SCHEMA: &'static str = "Sensor.v1_5_1.json";
21}