pub struct EventStateChange {
pub entity: EntityId,
pub change: StateChange,
}Expand description
Links a StateChange to the entity it affects within an event.
Fields§
§entity: EntityIdThe entity whose state changed.
change: StateChangeThe change that occurred.
Trait Implementations§
Source§impl Clone for EventStateChange
impl Clone for EventStateChange
Source§fn clone(&self) -> EventStateChange
fn clone(&self) -> EventStateChange
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EventStateChange
impl Debug for EventStateChange
Source§impl<'de> Deserialize<'de> for EventStateChange
impl<'de> Deserialize<'de> for EventStateChange
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 EventStateChange
impl RefUnwindSafe for EventStateChange
impl Send for EventStateChange
impl Sync for EventStateChange
impl Unpin for EventStateChange
impl UnsafeUnpin for EventStateChange
impl UnwindSafe for EventStateChange
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