Struct Sensor

Source
pub struct Sensor {
Show 57 fields pub odata_context: Option<Context>, pub odata_etag: Option<Etag>, pub odata_id: Id, pub odata_type: Type, 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_basis: Option<ReadingBasisType>, 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: Type§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_basis: Option<ReadingBasisType>§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 duplicate of the value. Read more
1.0.0 · Source§

const 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() -> Self

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 Metadata<'static> for Sensor

Source§

const JSON_SCHEMA: &'static str = "Sensor.v1_7_0.json"

Name of the json-schema file that describes the entity that implements this trait. Should be only the file name, so that it can be resolved relative to the URL of the redfish service, or the public Redfish schema index.
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§

§

impl Freeze for Sensor

§

impl RefUnwindSafe for Sensor

§

impl Send for Sensor

§

impl Sync for Sensor

§

impl Unpin for Sensor

§

impl UnwindSafe for Sensor

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where T: Clone,

Source§

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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