redfish-codegen 0.3.1

An unopinionated translation of the Redfish specification into Rust.
Documentation
// Generated by redfish-codegen. Do not modify.


/// The Sensor schema describes a sensor and its properties.
#[derive(Clone, Debug, serde::Deserialize, serde::Serialize)]
#[derive(derivative::Derivative)]
#[derivative(Default)]
pub struct SensorExcerpt {
    /// The link to the resource that provides the data for this sensor.
    #[serde(rename = "DataSourceUri")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub data_source_uri: Option<String>,
    /// The sensor value.
    #[serde(rename = "Reading")]
    #[serde(default, skip_serializing_if = "Option::is_none")]
    pub reading: Option<f64>,
}

impl crate::Metadata<'static> for SensorExcerpt {
    const JSON_SCHEMA: &'static str = "Sensor.v1_1_4.json";
}