pub struct EntityEvent {
pub kind: EntityEventKind,
pub entity: String,
pub values: Record,
pub updated_fields: Vec<String>,
pub old_values: Option<Record>,
pub new_values: Option<Record>,
pub changes: Vec<EntityPropertyChange>,
pub trace_chain: Vec<TraceNode>,
}Fields§
§kind: EntityEventKind§entity: String§values: Record§updated_fields: Vec<String>§old_values: Option<Record>§new_values: Option<Record>§changes: Vec<EntityPropertyChange>§trace_chain: Vec<TraceNode>Annotation trace chain from the graph save scope chain.
Implementations§
Source§impl EntityEvent
impl EntityEvent
pub fn created(entity: impl Into<String>, values: Record) -> Self
pub fn updated(entity: impl Into<String>, values: Record) -> Self
pub fn updated_with_old_values( entity: impl Into<String>, values: Record, old_values: Option<Record>, new_values: Record, updated_fields: Vec<String>, ) -> Self
pub fn deleted( entity: impl Into<String>, id: Value, expected_version: Option<i64>, ) -> Self
pub fn deleted_with_old_values( entity: impl Into<String>, id: Value, expected_version: Option<i64>, old_values: Option<Record>, ) -> Self
pub fn recovered( entity: impl Into<String>, id: Value, expected_version: i64, ) -> Self
pub fn recovered_with_old_values( entity: impl Into<String>, id: Value, expected_version: i64, old_values: Option<Record>, ) -> Self
Sourcepub fn schema_created(
entity: impl Into<String>,
table_name: impl Into<String>,
field_count: usize,
) -> Self
pub fn schema_created( entity: impl Into<String>, table_name: impl Into<String>, field_count: usize, ) -> Self
A new table was created during schema bootstrap.
Sourcepub fn schema_verified(
entity: impl Into<String>,
table_name: impl Into<String>,
field_count: usize,
) -> Self
pub fn schema_verified( entity: impl Into<String>, table_name: impl Into<String>, field_count: usize, ) -> Self
An existing table was verified during schema bootstrap.
Trait Implementations§
Source§impl Clone for EntityEvent
impl Clone for EntityEvent
Source§fn clone(&self) -> EntityEvent
fn clone(&self) -> EntityEvent
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 EntityEvent
impl Debug for EntityEvent
Source§impl PartialEq for EntityEvent
impl PartialEq for EntityEvent
Source§fn eq(&self, other: &EntityEvent) -> bool
fn eq(&self, other: &EntityEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EntityEvent
Auto Trait Implementations§
impl Freeze for EntityEvent
impl RefUnwindSafe for EntityEvent
impl Send for EntityEvent
impl Sync for EntityEvent
impl Unpin for EntityEvent
impl UnsafeUnpin for EntityEvent
impl UnwindSafe for EntityEvent
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