pub enum UnitOfMeasure {
Show 16 variants
Wh,
KWh,
Varh,
Kvarh,
W,
Kw,
Va,
Kva,
Var,
Kvar,
A,
V,
Celsius,
Fahrenheit,
K,
Percent,
}
Expand description
Status in TriggerMessageResponse
Variants
Wh
Watt-hours (energy). Default.
KWh
kiloWatt-hours (energy).
Varh
Var-hours (reactive energy).
Kvarh
kilovar-hours (reactive energy).
W
Watts (power).
Kw
kilowatts (power).
Va
VoltAmpere (apparent power).
Kva
kiloVolt Ampere (apparent power).
Var
Vars (reactive power).
Kvar
kilovars (reactive power).
A
Amperes (current).
V
Voltage (r.m.s. AC).
Celsius
Degrees (temperature).
Fahrenheit
Degrees (temperature).
K
Degrees Kelvin (temperature).
Percent
Percentage.
Trait Implementations
sourceimpl Clone for UnitOfMeasure
impl Clone for UnitOfMeasure
sourcefn clone(&self) -> UnitOfMeasure
fn clone(&self) -> UnitOfMeasure
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for UnitOfMeasure
impl Debug for UnitOfMeasure
sourceimpl Default for UnitOfMeasure
impl Default for UnitOfMeasure
sourceimpl<'de> Deserialize<'de> for UnitOfMeasure
impl<'de> Deserialize<'de> for UnitOfMeasure
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<UnitOfMeasure> for UnitOfMeasure
impl PartialEq<UnitOfMeasure> for UnitOfMeasure
sourceimpl Serialize for UnitOfMeasure
impl Serialize for UnitOfMeasure
impl StructuralPartialEq for UnitOfMeasure
Auto Trait Implementations
impl RefUnwindSafe for UnitOfMeasure
impl Send for UnitOfMeasure
impl Sync for UnitOfMeasure
impl Unpin for UnitOfMeasure
impl UnwindSafe for UnitOfMeasure
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more