#[repr(u8)]pub enum Change {
UpsertEntity(Entity),
UpsertScope(Scope),
RemoveEntity {
id: EntityId,
},
RemoveScope {
id: ScopeId,
},
UpsertEntityScopeLink {
entity_id: EntityId,
scope_id: ScopeId,
},
RemoveEntityScopeLink {
entity_id: EntityId,
scope_id: ScopeId,
},
UpsertEdge(Edge),
RemoveEdge {
src: EntityId,
dst: EntityId,
kind: EdgeKind,
},
AppendEvent(Event),
}Expand description
One canonical graph mutation in the append-only stream.
Variants§
UpsertEntity(Entity)
Insert or replace entity state.
UpsertScope(Scope)
Insert or replace scope state.
RemoveEntity
Remove entity and any incident edges in materialized state.
RemoveScope
Remove scope in materialized state.
UpsertEntityScopeLink
Insert or replace entity-scope membership state.
RemoveEntityScopeLink
Remove entity-scope membership state.
UpsertEdge(Edge)
Insert or replace edge state.
RemoveEdge
Remove a specific edge in materialized state.
AppendEvent(Event)
Append event to timeline/event log.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Change
impl RefUnwindSafe for Change
impl Send for Change
impl Sync for Change
impl Unpin for Change
impl UnsafeUnpin for Change
impl UnwindSafe for Change
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