pub enum Unit {
Show 13 variants
KWH,
GHG,
Volts,
Amps,
Celcius,
Fahrenheit,
Percent,
KW,
KVAH,
KVARH,
KVA,
KVAR,
Private(String),
}
Variants§
KWH
Kilowatt-hours (kWh)
GHG
Greenhouse gas emissions (g/kWh)
Volts
Voltage (V)
Amps
Current (A)
Celcius
Temperature (C)
Fahrenheit
Temperature (F)
Percent
Percentage (%)
KW
Kilowatts
KVAH
Kilovolt-ampere hours (kVAh)
KVARH
Kilovolt-amperes reactive hours (kVARh)
KVA
Kilovolt-amperes (kVA)
KVAR
Kilovolt-amperes reactive (kVAR)
Private(String)
An application specific privately defined unit.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Unit
impl<'de> Deserialize<'de> for Unit
Source§fn 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
impl Eq for Unit
impl StructuralPartialEq for Unit
Auto Trait Implementations§
impl Freeze for Unit
impl RefUnwindSafe for Unit
impl Send for Unit
impl Sync for Unit
impl Unpin for Unit
impl UnwindSafe for Unit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more