pub struct WSEvent {
pub id: u64,
pub event: HassEvent,
}Expand description
This object represents the Home Assistant Event
received when the client is subscribed to Subscribe to events
Fields§
§id: u64§event: HassEventTrait Implementations§
Source§impl<'de> Deserialize<'de> for WSEvent
impl<'de> Deserialize<'de> for WSEvent
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 StructuralPartialEq for WSEvent
Auto Trait Implementations§
impl Freeze for WSEvent
impl RefUnwindSafe for WSEvent
impl Send for WSEvent
impl Sync for WSEvent
impl Unpin for WSEvent
impl UnwindSafe for WSEvent
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