pub enum PropertyUndoEntry {
NodeProperty {
node_id: NodeId,
key: PropertyKey,
old_value: Option<Value>,
},
EdgeProperty {
edge_id: EdgeId,
key: PropertyKey,
old_value: Option<Value>,
},
LabelAdded {
node_id: NodeId,
label: String,
},
LabelRemoved {
node_id: NodeId,
label: String,
},
NodeDeleted {
node_id: NodeId,
labels: Vec<String>,
properties: Vec<(PropertyKey, Value)>,
},
EdgeDeleted {
edge_id: EdgeId,
src: NodeId,
dst: NodeId,
edge_type: String,
properties: Vec<(PropertyKey, Value)>,
},
}Expand description
Undo entry for a property mutation within a transaction.
Captures the previous state of a property so it can be restored on rollback.
Variants§
NodeProperty
A node property was changed or added.
Fields
§
key: PropertyKeyThe property key that was set or removed.
EdgeProperty
An edge property was changed or added.
Fields
§
key: PropertyKeyThe property key that was set or removed.
LabelAdded
A label was added to a node.
Fields
LabelRemoved
A label was removed from a node.
Fields
NodeDeleted
A node was deleted (for rollback restoration).
Fields
§
properties: Vec<(PropertyKey, Value)>The properties the node had before deletion.
EdgeDeleted
An edge was deleted (for rollback restoration).
Trait Implementations§
Source§impl Clone for PropertyUndoEntry
impl Clone for PropertyUndoEntry
Source§fn clone(&self) -> PropertyUndoEntry
fn clone(&self) -> PropertyUndoEntry
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PropertyUndoEntry
impl RefUnwindSafe for PropertyUndoEntry
impl Send for PropertyUndoEntry
impl Sync for PropertyUndoEntry
impl Unpin for PropertyUndoEntry
impl UnsafeUnpin for PropertyUndoEntry
impl UnwindSafe for PropertyUndoEntry
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> 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