Skip to main content

ReadingType

Enum ReadingType 

Source
pub enum ReadingType {
Show 32 variants Temperature, Humidity, Power, EnergykWh, EnergyJoules, EnergyWh, ChargeAh, Voltage, Current, Frequency, Pressure, PressurekPa, PressurePa, LiquidLevel, Rotational, AirFlow, AirFlowCmm, LiquidFlow, LiquidFlowLpm, Barometric, Altitude, Percent, AbsoluteHumidity, Heat, LinearPosition, LinearVelocity, LinearAcceleration, RotationalPosition, RotationalVelocity, RotationalAcceleration, Valve, UnsupportedValue,
}

Variants§

§

Temperature

Temperature (C).

This value shall indicate a temperature measurement, in degree Celsius units. The ReadingUnits property shall contain Cel.

§

Humidity

Relative humidity (percent).

This value shall indicate a relative humidity measurement, in percent units. The ReadingUnits property shall contain %.

§

Power

Power (W).

This value shall indicate the arithmetic mean of product terms of instantaneous voltage and current values measured over integer number of line cycles for a circuit, in watt units. The ReadingUnits property shall contain W.

§

EnergykWh

Energy (kWh).

This value shall indicate the energy, integral of real power over time, of the monitored item. If representing metered power consumption the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in kilowatt-hour units and the ReadingUnits property shall contain kW.h. This value is used for large-scale energy consumption measurements, while EnergyJoules and EnergyWh are used for device-level consumption measurements.

§

EnergyJoules

Energy (J).

This value shall indicate the energy, integral of real power over time, of the monitored item. If representing metered power consumption the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in joule units and the ReadingUnits property shall contain J. This value is used for device-level energy consumption measurements, while EnergykWh is used for large-scale consumption measurements.

§

EnergyWh

Energy (Wh).

This value shall indicate the energy, integral of real power over time, of the monitored item. If representing metered power consumption the value shall reflect the power consumption since the sensor metrics were last reset. The value of the Reading property shall be in watt-hour units and the ReadingUnits property shall contain W.h. This value is used for device-level energy consumption measurements, while EnergykWh is used for large-scale consumption measurements.

§

ChargeAh

Charge (Ah).

This value shall indicate the amount of charge, integral of current over time, of the monitored item. If representing metered charge consumption the value shall reflect the charge consumption since the sensor metrics were last reset. The value of the Reading property shall be in ampere-hour units and the ReadingUnits property shall contain A.h.

§

Voltage

Voltage (VAC or VDC).

This value shall indicate a measurement of the root mean square (RMS) of instantaneous voltage calculated over an integer number of line cycles for a circuit. Voltage is expressed in volt units and the ReadingUnits property shall contain V.

§

Current

Current (A).

This value shall indicate a measurement of the root mean square (RMS) of instantaneous current calculated over an integer number of line cycles for a circuit. Current is expressed in ampere units and the ReadingUnits property shall contain A.

§

Frequency

Frequency (Hz).

This value shall indicate a frequency measurement, in hertz units. The ReadingUnits property shall contain Hz.

§

Pressure

Pressure (Pa).

This value shall indicate a measurement of force, in pascal units, applied perpendicular to the surface of an object per unit area over which that force is distributed. The ReadingUnits property shall contain Pa.

§

PressurekPa

Pressure (kPa).

This value shall indicate a measurement of pressure, in kilopascal units, relative to atmospheric pressure. The ReadingUnits property shall contain kPa.

§

PressurePa

Pressure (Pa).

This value shall indicate a measurement of pressure, in pascal units, relative to atmospheric pressure. The ReadingUnits property shall contain Pa.

§

LiquidLevel

Liquid level (cm).

This value shall indicate a measurement of fluid height, in centimeter units, relative to a specified vertical datum and the ReadingUnits property shall contain cm.

§

Rotational

Rotational (RPM).

This value shall indicate a measurement of rotational frequency, in revolutions per minute units. The ReadingUnits property shall contain either {rev}/min, which is preferred, or RPM, which is a deprecated value. Services should represent fan speed and pump speed sensors with the ReadingType value Percent.

§

AirFlow

Air flow (cu ft/min).

This value shall indicate a measurement of a volume of gas per unit of time, in cubic feet per minute units, that flows through a particular junction. The ReadingUnits property shall contain [ft_i]3/min.

§

AirFlowCmm

Air flow (m^3/min).

This value shall indicate a measurement of a volume of gas per unit of time, in cubic meters per minute units, that flows through a particular junction. The ReadingUnits property shall contain m3/min.

§

LiquidFlow

Liquid flow (L/s).

This value shall indicate a measurement of a volume of liquid per unit of time, in liters per second units, that flows through a particular junction. The ReadingUnits property shall contain L/s.

§

LiquidFlowLpm

Liquid flow (L/min).

This value shall indicate a measurement of a volume of liquid per unit of time, in liters per minute units, that flows through a particular junction. The ReadingUnits property shall contain L/min.

§

Barometric

Barometric pressure (mm).

This value shall indicate a measurement of barometric pressure, in millimeters of a mercury column. The ReadingUnits property shall contain mm[Hg].

§

Altitude

Altitude (m).

This value shall indicate a measurement of altitude, in meter units, defined as the elevation above sea level. The ReadingUnits property shall contain m.

§

Percent

Percent (%).

This value shall indicate a percentage measurement, in percent units. The Reading value, while typically 0 to 100, may exceed 100 for rate-of-change or similar readings. The ReadingUnits property shall contain %.

§

AbsoluteHumidity

Absolute humidity (g/m^3).

This value shall indicate an absolute (volumetric) humidity measurement, in grams per cubic meter units. The ReadingUnits property shall contain g/m3.

§

Heat

Heat (kW).

This value shall indicate a heat measurement, in kilowatt units. The ReadingUnits property shall contain kW.

§

LinearPosition

Linear position or distance (m).

This value shall indicate a linear position or distance, in meter units. The ReadingUnits property shall contain m.

§

LinearVelocity

Linear velocity (m/s).

This value shall indicate a linear velocity, in meters per second units. The ReadingUnits property shall contain m/s.

§

LinearAcceleration

Linear acceleration (m/s^2).

This value shall indicate a linear acceleration, in meters per square second units. The ReadingUnits property shall contain m/s2.

§

RotationalPosition

Rotational position (rad).

This value shall indicate a rotational position, in radian units. The ReadingUnits property shall contain rad.

§

RotationalVelocity

Rotational velocity (rad/s).

This value shall indicate a rotational velocity, in radians per second units. The ReadingUnits property shall contain rad/s.

§

RotationalAcceleration

Rotational acceleration (rad/s^2).

This value shall indicate a rotational acceleration, in radians per square second units. The ReadingUnits property shall contain rad/s2.

§

Valve

Valve (% open).

This value shall indicate a valve position, in percent units. The ReadingUnits property shall contain %. A value of 100 shall indicate the valve is completely open, and a value of 0 shall indicate the valve is completely closed.

§

UnsupportedValue

Fallback value for values that are not supported by current version of Redfish schema.

Trait Implementations§

Source§

impl Clone for ReadingType

Source§

fn clone(&self) -> ReadingType

Returns a duplicate 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 ReadingType

Source§

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

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

impl<'de> Deserialize<'de> for ReadingType

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 PartialEq for ReadingType

Source§

fn eq(&self, other: &ReadingType) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for ReadingType

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
Source§

impl ToSnakeCase for ReadingType

Source§

fn to_snake_case(&self) -> &'static str

Convert this enum variant to a snake_case string
Source§

impl Copy for ReadingType

Source§

impl Eq for ReadingType

Source§

impl StructuralPartialEq for ReadingType

Auto Trait Implementations§

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> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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