pub enum WriteTarget<'a> {
Show 13 variants
CreatedNode(NodeId),
CreatedRel {
id: RelId,
start: NodeId,
end: NodeId,
},
DeletedNode(NodeId),
DeletedRel(RelId),
MutatedNode(NodeId),
MutatedRel(RelId),
CreateIndex {
name: &'a str,
label: &'a str,
property: &'a str,
},
DropIndex {
name: &'a str,
},
CreateConstraint {
name: &'a str,
},
DropConstraint {
name: &'a str,
},
CatalogMeta,
PullIdentity,
Ontology,
}Expand description
What an op writes (ADR-0015 conflict classification). Total over
RedoOp: a delete is also a mutation of the same element,
CreatedRel carries the endpoints, and catalog ops carry their
(borrowed) identity — consumers match once and bind everything from the
classification.
Variants§
CreatedNode(NodeId)
CreatedRel
DeletedNode(NodeId)
DeletedRel(RelId)
MutatedNode(NodeId)
MutatedRel(RelId)
CreateIndex
DropIndex
CreateConstraint
DropConstraint
CatalogMeta
Store/catalog metadata mutation (index details, derived constraints, databases, graph type).
PullIdentity
Source-scoped pull identity (ADR-0080); not a graph CDC event.
Ontology
Store-level ontology document (ADR-0120 §3): not a graph op and not catalog metadata, so it conflicts with nothing at the graph layer.
Implementations§
Source§impl WriteTarget<'_>
impl WriteTarget<'_>
Sourcepub fn is_catalog(&self) -> bool
pub fn is_catalog(&self) -> bool
Whether the classified op changes the catalog (indexes, constraints, store metadata) rather than an entity or a pull identity. Total, so a new target must be placed on one side.
Trait Implementations§
Source§impl<'a> Clone for WriteTarget<'a>
impl<'a> Clone for WriteTarget<'a>
impl<'a> Copy for WriteTarget<'a>
Source§impl<'a> Debug for WriteTarget<'a>
impl<'a> Debug for WriteTarget<'a>
impl<'a> Eq for WriteTarget<'a>
Source§impl<'a> PartialEq for WriteTarget<'a>
impl<'a> PartialEq for WriteTarget<'a>
impl<'a> StructuralPartialEq for WriteTarget<'a>
Auto Trait Implementations§
impl<'a> Forget for WriteTarget<'a>
impl<'a> Freeze for WriteTarget<'a>
impl<'a> Move for WriteTarget<'a>
impl<'a> RefUnwindSafe for WriteTarget<'a>
impl<'a> Send for WriteTarget<'a>
impl<'a> Sync for WriteTarget<'a>
impl<'a> Unpin for WriteTarget<'a>
impl<'a> UnsafeUnpin for WriteTarget<'a>where
&'a str: UnsafeUnpin,
impl<'a> UnwindSafe for WriteTarget<'a>where
&'a str: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.