pub struct PersonPropertyChangeEvent<T: PersonProperty> {
pub person_id: PersonId,
pub current: T::Value,
pub previous: T::Value,
}
Expand description
Emitted when a person property is updated These should not be emitted outside this module
Fields§
§person_id: PersonId
The PersonId
that changed
current: T::Value
The new value
previous: T::Value
The old value
Trait Implementations§
Source§impl<T: Clone + PersonProperty> Clone for PersonPropertyChangeEvent<T>
impl<T: Clone + PersonProperty> Clone for PersonPropertyChangeEvent<T>
Source§fn clone(&self) -> PersonPropertyChangeEvent<T>
fn clone(&self) -> PersonPropertyChangeEvent<T>
Returns a copy 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 moreSource§impl<T: PersonProperty + 'static> IxaEvent for PersonPropertyChangeEvent<T>
impl<T: PersonProperty + 'static> IxaEvent for PersonPropertyChangeEvent<T>
Source§fn on_subscribe(context: &mut Context)
fn on_subscribe(context: &mut Context)
Called every time
context.subscribe_to_event
is called with this eventimpl<T: Copy + PersonProperty> Copy for PersonPropertyChangeEvent<T>
Auto Trait Implementations§
impl<T> Freeze for PersonPropertyChangeEvent<T>
impl<T> RefUnwindSafe for PersonPropertyChangeEvent<T>
impl<T> Send for PersonPropertyChangeEvent<T>
impl<T> Sync for PersonPropertyChangeEvent<T>
impl<T> Unpin for PersonPropertyChangeEvent<T>
impl<T> UnwindSafe for PersonPropertyChangeEvent<T>
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