pub struct Measurement {
pub object_id: u8,
pub name: &'static str,
pub value: f64,
pub unit: &'static str,
}Expand description
A measurement or state.
Fields§
§object_id: u8The object id.
name: &'static strBTHome’s name for it, snake case: temperature, door, …
value: f64The value, scaled. Binary sensors are 0 or 1.
unit: &'static strThe unit, or empty.
Trait Implementations§
Source§impl Clone for Measurement
impl Clone for Measurement
Source§impl Debug for Measurement
impl Debug for Measurement
Source§impl PartialEq for Measurement
impl PartialEq for Measurement
Source§impl Serialize for Measurement
impl Serialize for Measurement
impl StructuralPartialEq for Measurement
Auto Trait Implementations§
impl Freeze for Measurement
impl RefUnwindSafe for Measurement
impl Send for Measurement
impl Sync for Measurement
impl Unpin for Measurement
impl UnsafeUnpin for Measurement
impl UnwindSafe for Measurement
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