pub enum GraphMutation {
UpsertNode(Node),
DeleteNode(NodeId),
UpsertEdge(Edge),
DeleteEdge {
id: Option<EdgeId>,
from: NodeId,
label: Label,
to: NodeId,
},
}Expand description
A single incremental change to a graph, for delta-oriented pipelines.
Variants§
Trait 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 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