pub struct Sensor {
Show 56 fields pub odata_context: Option<Context>, pub odata_etag: Option<Etag>, pub odata_id: Id, pub odata_type: MustBeStr<(char<{ _ }>, S, e, (n, s, o, r, char<{ _ }>, v), (char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>), (S, e, n, s, o, r))>, pub accuracy: Option<f64>, pub actions: Option<Actions>, pub adjusted_max_allowable_operating_value: Option<f64>, pub adjusted_min_allowable_operating_value: Option<f64>, pub apparent_va: Option<f64>, pub apparentk_v_ah: Option<f64>, pub average_reading: Option<f64>, pub averaging_interval: Option<String>, pub averaging_interval_achieved: Option<bool>, pub calibration: Option<f64>, pub calibration_time: Option<String>, pub crest_factor: Option<f64>, pub description: Option<Description>, pub electrical_context: Option<ElectricalContext>, pub id: Id, pub implementation: Option<ImplementationType>, pub lifetime_reading: Option<f64>, pub links: Option<Links>, pub load_percent: Option<f64>, pub location: Option<Location>, pub lowest_reading: Option<f64>, pub lowest_reading_time: Option<String>, pub max_allowable_operating_value: Option<f64>, pub min_allowable_operating_value: Option<f64>, pub name: Name, pub oem: Option<Oem>, pub peak_reading: Option<f64>, pub peak_reading_time: Option<String>, pub phase_angle_degrees: Option<f64>, pub physical_context: Option<PhysicalContext>, pub physical_sub_context: Option<PhysicalSubContext>, pub power_factor: Option<f64>, pub precision: Option<f64>, pub reactive_var: Option<f64>, pub reactivek_va_rh: Option<f64>, pub reading: Option<f64>, pub reading_range_max: Option<f64>, pub reading_range_min: Option<f64>, pub reading_time: Option<String>, pub reading_type: Option<ReadingType>, pub reading_units: Option<String>, pub related_item: Option<Vec<IdRef>>, pub related_item_odata_count: Option<Count>, pub sensing_frequency: Option<f64>, pub sensing_interval: Option<String>, pub sensor_group: Option<RedundantGroup>, pub sensor_reset_time: Option<String>, pub speed_rpm: Option<f64>, pub status: Option<Status>, pub thd_percent: Option<f64>, pub thresholds: Option<Thresholds>, pub voltage_type: Option<VoltageType>,
}
Expand description

The Sensor schema describes a sensor and its properties.

Fields§

§odata_context: Option<Context>§odata_etag: Option<Etag>§odata_id: Id§odata_type: MustBeStr<(char<{ _ }>, S, e, (n, s, o, r, char<{ _ }>, v), (char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>, char<{ _ }>), (S, e, n, s, o, r))>§accuracy: Option<f64>

The estimated percent error of measured versus actual values.

§actions: Option<Actions>§adjusted_max_allowable_operating_value: Option<f64>

The adjusted maximum allowable operating value for this equipment based on the environmental conditions.

§adjusted_min_allowable_operating_value: Option<f64>

The adjusted minimum allowable operating value for this equipment based on the environmental conditions.

§apparent_va: Option<f64>

The product of voltage and current for an AC circuit, in volt-ampere units.

§apparentk_v_ah: Option<f64>

Apparent energy (kVAh).

§average_reading: Option<f64>

The average sensor value.

§averaging_interval: Option<String>

The interval over which the average sensor value is calculated.

§averaging_interval_achieved: Option<bool>

Indicates that enough readings were collected to calculate the average sensor reading over the averaging interval time.

§calibration: Option<f64>

The calibration offset applied to the Reading.

§calibration_time: Option<String>

The date and time that the sensor was last calibrated.

§crest_factor: Option<f64>

The crest factor for this sensor.

§description: Option<Description>§electrical_context: Option<ElectricalContext>§id: Id§implementation: Option<ImplementationType>§lifetime_reading: Option<f64>

The total accumulation value for this sensor.

§links: Option<Links>§load_percent: Option<f64>

The power load utilization for this sensor.

§location: Option<Location>§lowest_reading: Option<f64>

The lowest sensor value.

§lowest_reading_time: Option<String>

The time when the lowest sensor value occurred.

§max_allowable_operating_value: Option<f64>

The maximum allowable operating value for this equipment.

§min_allowable_operating_value: Option<f64>

The minimum allowable operating value for this equipment.

§name: Name§oem: Option<Oem>§peak_reading: Option<f64>

The peak sensor value.

§peak_reading_time: Option<String>

The time when the peak sensor value occurred.

§phase_angle_degrees: Option<f64>

The phase angle (degrees) between the current and voltage waveforms.

§physical_context: Option<PhysicalContext>§physical_sub_context: Option<PhysicalSubContext>§power_factor: Option<f64>

The power factor for this sensor.

§precision: Option<f64>

The number of significant digits in the reading.

§reactive_var: Option<f64>

The square root of the difference term of squared apparent VA and squared power (Reading) for a circuit, in VAR units.

§reactivek_va_rh: Option<f64>

Reactive energy (kVARh).

§reading: Option<f64>

The sensor value.

§reading_range_max: Option<f64>

The maximum possible value for this sensor.

§reading_range_min: Option<f64>

The minimum possible value for this sensor.

§reading_time: Option<String>

The date and time that the reading was acquired from the sensor.

§reading_type: Option<ReadingType>§reading_units: Option<String>

The units of the reading and thresholds.

§related_item: Option<Vec<IdRef>>

An array of links to resources or objects that this sensor services.

§related_item_odata_count: Option<Count>§sensing_frequency: Option<f64>

The time interval between readings of the physical sensor.

§sensing_interval: Option<String>

The time interval between readings of the sensor.

§sensor_group: Option<RedundantGroup>§sensor_reset_time: Option<String>

The date and time when the time-based properties were last reset.

§speed_rpm: Option<f64>

The rotational speed.

§status: Option<Status>§thd_percent: Option<f64>

The total harmonic distortion (THD).

§thresholds: Option<Thresholds>§voltage_type: Option<VoltageType>

Trait Implementations§

source§

impl Clone for Sensor

source§

fn clone(&self) -> Sensor

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Sensor

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Sensor

source§

fn default() -> Sensor

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for Sensor

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Sensor

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,