pub struct GraphDeltaBuilder { /* private fields */ }Expand description
Builder for graph deltas
Implementations§
Source§impl GraphDeltaBuilder
impl GraphDeltaBuilder
Sourcepub fn add_node_with_props(
self,
id: impl Into<NodeId>,
props: HashMap<String, PropertyValue>,
) -> Self
pub fn add_node_with_props( self, id: impl Into<NodeId>, props: HashMap<String, PropertyValue>, ) -> Self
Add a node with properties
Sourcepub fn remove_node(self, id: impl Into<NodeId>) -> Self
pub fn remove_node(self, id: impl Into<NodeId>) -> Self
Remove a node
Sourcepub fn add_edge(
self,
id: impl Into<EdgeId>,
source: impl Into<NodeId>,
target: impl Into<NodeId>,
edge_type: impl Into<String>,
) -> Self
pub fn add_edge( self, id: impl Into<EdgeId>, source: impl Into<NodeId>, target: impl Into<NodeId>, edge_type: impl Into<String>, ) -> Self
Add an edge
Sourcepub fn remove_edge(self, id: impl Into<EdgeId>) -> Self
pub fn remove_edge(self, id: impl Into<EdgeId>) -> Self
Remove an edge
Sourcepub fn build(self) -> GraphDelta
pub fn build(self) -> GraphDelta
Build the delta
Trait Implementations§
Auto Trait Implementations§
impl Forget for GraphDeltaBuilder
impl Freeze for GraphDeltaBuilder
impl Move for GraphDeltaBuilder
impl RefUnwindSafe for GraphDeltaBuilder
impl Send for GraphDeltaBuilder
impl Sync for GraphDeltaBuilder
impl Unpin for GraphDeltaBuilder
impl UnsafeUnpin for GraphDeltaBuilder
impl UnwindSafe for GraphDeltaBuilder
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