pub struct HassEvent {
pub data: EventData,
pub event_type: String,
pub time_fired: String,
pub origin: String,
pub context: Context,
}Expand description
This object represents the Home Assistant Event
received when the client is subscribed to Subscribe to events
This is created against StateChangedEvent, may not work with other event types, although extra fields are supported, so with some work it could be used for other events
Fields§
§data: EventData§event_type: String§time_fired: String§origin: String§context: ContextTrait Implementations§
Source§impl<'de> Deserialize<'de> for HassEvent
impl<'de> Deserialize<'de> for HassEvent
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 HassEvent
Auto Trait Implementations§
impl Freeze for HassEvent
impl RefUnwindSafe for HassEvent
impl Send for HassEvent
impl Sync for HassEvent
impl Unpin for HassEvent
impl UnwindSafe for HassEvent
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