pub enum Change {
NodeCreated {
id: NodeId,
labels: Vec<String>,
properties: Properties,
},
NodeUpdated {
id: NodeId,
labels: Vec<String>,
properties: Properties,
set_keys: Vec<String>,
removed_keys: Vec<String>,
added_labels: Vec<String>,
removed_labels: Vec<String>,
},
NodeDeleted {
id: NodeId,
labels: Vec<String>,
properties: Properties,
},
RelationshipCreated {
id: RelationshipId,
rel_type: String,
start: NodeId,
end: NodeId,
properties: Properties,
},
RelationshipUpdated {
id: RelationshipId,
rel_type: String,
start: NodeId,
end: NodeId,
properties: Properties,
set_keys: Vec<String>,
removed_keys: Vec<String>,
},
RelationshipDeleted {
id: RelationshipId,
rel_type: String,
start: NodeId,
end: NodeId,
properties: Properties,
},
Reset,
}Expand description
Net effect of one committed transaction on one entity.
Created and updated entities carry their state after the commit. Deleted entities carry their last committed state. An entity created and deleted inside the same transaction is not reported.
Variants§
NodeCreated
NodeUpdated
Fields
§
properties: PropertiesNodeDeleted
RelationshipCreated
RelationshipUpdated
RelationshipDeleted
Reset
The whole graph was replaced (clear() or a snapshot restore).
Consumers should drop anything they derived from earlier batches.
Trait Implementations§
impl StructuralPartialEq for Change
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more