pub struct ObjectEvent {
pub event_type: EventType,
pub object: ObjectId,
pub source_parent: Option<ObjectId>,
pub destination_parent: Option<ObjectId>,
pub actor: Option<ActorId>,
pub timestamp: Timestamp,
pub data: EventData,
}Expand description
A single event in the Engine’s synchronous event chain.
Events are historical records: the referenced object may already be gone
by the time a listener sees an ObjectDeleted event.
Fields§
§event_type: EventTypeThe kind of event.
object: ObjectIdThe primary object the event concerns.
source_parent: Option<ObjectId>The object’s previous parent, when relevant.
destination_parent: Option<ObjectId>The object’s new parent, when relevant.
actor: Option<ActorId>The actor that caused the event, if any.
timestamp: TimestampThe virtual time at which the mutation was committed.
data: EventDataAdditional event payload.
Implementations§
Trait Implementations§
Source§impl Clone for ObjectEvent
impl Clone for ObjectEvent
Source§impl Debug for ObjectEvent
impl Debug for ObjectEvent
Source§impl PartialEq for ObjectEvent
impl PartialEq for ObjectEvent
impl StructuralPartialEq for ObjectEvent
Auto Trait Implementations§
impl Freeze for ObjectEvent
impl RefUnwindSafe for ObjectEvent
impl Send for ObjectEvent
impl Sync for ObjectEvent
impl Unpin for ObjectEvent
impl UnsafeUnpin for ObjectEvent
impl UnwindSafe for ObjectEvent
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