pub struct Reading {
pub key: String,
pub value: f64,
pub unit: &'static str,
}Expand description
One measurement from a sensor frame.
Fields§
§key: StringA stable snake_case key, unique within the frame (temperature,
button_2, …).
value: f64The value.
unit: &'static strThe unit, as Home Assistant spells it (°C, %, hPa, …), or empty.
Trait Implementations§
impl StructuralPartialEq for Reading
Auto Trait Implementations§
impl Freeze for Reading
impl RefUnwindSafe for Reading
impl Send for Reading
impl Sync for Reading
impl Unpin for Reading
impl UnsafeUnpin for Reading
impl UnwindSafe for Reading
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