pub struct BinarySensor {
pub object_id: String,
}Expand description
Represents a binary sensor entity.
Binary sensors report a simple on/off or true/false state, such as door/window sensors, motion detectors, or binary switches.
Fields§
§object_id: StringThe unique object identifier for this binary sensor
Trait Implementations§
Source§impl Clone for BinarySensor
impl Clone for BinarySensor
Source§fn clone(&self) -> BinarySensor
fn clone(&self) -> BinarySensor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BinarySensor
impl RefUnwindSafe for BinarySensor
impl Send for BinarySensor
impl Sync for BinarySensor
impl Unpin for BinarySensor
impl UnwindSafe for BinarySensor
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