redfish_codegen/models/sensor/v1_5_1/
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 phase angle (degrees) between the current and voltage waveforms.
18    #[serde(rename = "PhaseAngleDegrees")]
19    #[serde(default, skip_serializing_if = "Option::is_none")]
20    pub phase_angle_degrees: Option<f64>,
21    /// The power factor for this sensor.
22    #[serde(rename = "PowerFactor")]
23    #[serde(default, skip_serializing_if = "Option::is_none")]
24    pub power_factor: Option<f64>,
25    /// The square root of the difference term of squared apparent VA and squared power (Reading) for a circuit, in VAR units.
26    #[serde(rename = "ReactiveVAR")]
27    #[serde(default, skip_serializing_if = "Option::is_none")]
28    pub reactive_var: Option<f64>,
29    /// The sensor value.
30    #[serde(rename = "Reading")]
31    #[serde(default, skip_serializing_if = "Option::is_none")]
32    pub reading: Option<f64>,
33}
34
35impl crate::Metadata<'static> for SensorPowerExcerpt {
36    const JSON_SCHEMA: &'static str = "Sensor.v1_5_1.json";
37}