redfish_codegen/models/sensor/v1_0_9/
sensor_power_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 SensorPowerExcerpt {
9    /// The product of voltage and current for an AC circuit, in volt-ampere units.
10    #[serde(rename = "ApparentVA")]
11    #[serde(default, skip_serializing_if = "Option::is_none")]
12    pub apparent_va: 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 power factor for this sensor.
18    #[serde(rename = "PowerFactor")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub power_factor: Option<f64>,
21    /// The square root of the difference term of squared apparent VA and squared power (Reading) for a circuit, in VAR units.
22    #[serde(rename = "ReactiveVAR")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub reactive_var: 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}
30
31impl crate::Metadata<'static> for SensorPowerExcerpt {
32    const JSON_SCHEMA: &'static str = "Sensor.v1_0_9.json";
33}