pub struct StateChangedEventJson {
pub event_type: String,
pub entity_id: String,
pub new_state: Option<String>,
pub attributes: Value,
}Expand description
JSON payload for receive_event — state_changed variant.
Fields§
§event_type: String§entity_id: String§new_state: Option<String>§attributes: ValueImplementations§
Trait Implementations§
Source§impl Debug for StateChangedEventJson
impl Debug for StateChangedEventJson
Source§impl<'de> Deserialize<'de> for StateChangedEventJson
impl<'de> Deserialize<'de> for StateChangedEventJson
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
Auto Trait Implementations§
impl Freeze for StateChangedEventJson
impl RefUnwindSafe for StateChangedEventJson
impl Send for StateChangedEventJson
impl Sync for StateChangedEventJson
impl Unpin for StateChangedEventJson
impl UnsafeUnpin for StateChangedEventJson
impl UnwindSafe for StateChangedEventJson
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