pub enum GraphMutation {
Show 17 variants
UpsertNode(Node),
PatchNode {
id: NodeId,
props: Props,
},
PatchMatchingNodes {
label: Option<Label>,
props: Props,
predicates: Vec<GraphPropertyPredicate>,
patch: Props,
},
UpdateMatchingNodeProperty {
label: Option<Label>,
props: Props,
predicates: Vec<GraphPropertyPredicate>,
target_key: String,
source_key: String,
op: GraphNumericOp,
operand: Value,
},
PatchEdge {
from: NodeId,
label: Label,
to: NodeId,
id: Option<EdgeId>,
props: Props,
},
PatchMatchingEdges {
relationship: GraphRelationshipMatch,
patch: Props,
},
UpdateMatchingEdgeProperty {
relationship: GraphRelationshipMatch,
target_key: String,
source_key: String,
op: GraphNumericOp,
operand: Value,
},
RemoveNodeProps {
id: NodeId,
keys: Vec<String>,
},
RemoveMatchingNodeProps {
label: Option<Label>,
props: Props,
predicates: Vec<GraphPropertyPredicate>,
keys: Vec<String>,
},
RemoveEdgeProps {
from: NodeId,
label: Label,
to: NodeId,
id: Option<EdgeId>,
keys: Vec<String>,
},
RemoveMatchingEdgeProps {
relationship: GraphRelationshipMatch,
keys: Vec<String>,
},
DeleteMatchingNodes {
label: Option<Label>,
props: Props,
predicates: Vec<GraphPropertyPredicate>,
},
DeleteNode(NodeId),
UpsertEdge(Edge),
UpsertEdgesFromNodeMatches {
kind: GraphMutationPlanKind,
from: GraphNodeMatch,
to: GraphNodeMatch,
label: Label,
props: Props,
edge_id_policy: GraphRowEdgeIdPolicy,
},
DeleteEdge {
from: NodeId,
label: Label,
to: NodeId,
},
DeleteMatchingEdges {
relationship: GraphRelationshipMatch,
},
}Expand description
A single incremental change to a graph, for delta-oriented pipelines.
Variants§
UpsertNode(Node)
PatchNode
PatchMatchingNodes
UpdateMatchingNodeProperty
PatchEdge
PatchMatchingEdges
UpdateMatchingEdgeProperty
RemoveNodeProps
RemoveMatchingNodeProps
RemoveEdgeProps
RemoveMatchingEdgeProps
DeleteMatchingNodes
DeleteNode(NodeId)
UpsertEdge(Edge)
UpsertEdgesFromNodeMatches
Fields
§
kind: GraphMutationPlanKind§
from: GraphNodeMatch§
to: GraphNodeMatch§
edge_id_policy: GraphRowEdgeIdPolicyDeleteEdge
DeleteMatchingEdges
Fields
§
relationship: GraphRelationshipMatchTrait Implementations§
Source§impl Clone for GraphMutation
impl Clone for GraphMutation
Source§fn clone(&self) -> GraphMutation
fn clone(&self) -> GraphMutation
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 GraphMutation
impl Debug for GraphMutation
Source§impl<'de> Deserialize<'de> for GraphMutation
impl<'de> Deserialize<'de> for GraphMutation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GraphMutationPlanOp> for GraphMutation
impl From<GraphMutationPlanOp> for GraphMutation
Source§fn from(operation: GraphMutationPlanOp) -> Self
fn from(operation: GraphMutationPlanOp) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GraphMutation
impl PartialEq for GraphMutation
Source§fn eq(&self, other: &GraphMutation) -> bool
fn eq(&self, other: &GraphMutation) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GraphMutation
impl Serialize for GraphMutation
impl StructuralPartialEq for GraphMutation
Auto Trait Implementations§
impl Freeze for GraphMutation
impl RefUnwindSafe for GraphMutation
impl Send for GraphMutation
impl Sync for GraphMutation
impl Unpin for GraphMutation
impl UnsafeUnpin for GraphMutation
impl UnwindSafe for GraphMutation
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