pub struct GraphBuilder { /* private fields */ }Expand description
Builder for constructing dataflow graphs fluently.
Implementations§
Source§impl GraphBuilder
impl GraphBuilder
Sourcepub fn project(
self,
name: impl Into<String>,
projection_type: impl Into<String>,
) -> Self
pub fn project( self, name: impl Into<String>, projection_type: impl Into<String>, ) -> Self
Add a projection node, connecting from the last node.
Sourcepub fn transform(
self,
name: impl Into<String>,
transform_type: TransformType,
) -> Self
pub fn transform( self, name: impl Into<String>, transform_type: TransformType, ) -> Self
Add a transform node, connecting from the last node.
Sourcepub fn sink(
self,
name: impl Into<String>,
target_property: impl Into<String>,
) -> Self
pub fn sink( self, name: impl Into<String>, target_property: impl Into<String>, ) -> Self
Add a sink node, connecting from the last node.
Sourcepub fn build(self) -> DataflowGraph
pub fn build(self) -> DataflowGraph
Build and return the graph.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GraphBuilder
impl RefUnwindSafe for GraphBuilder
impl Send for GraphBuilder
impl Sync for GraphBuilder
impl Unpin for GraphBuilder
impl UnsafeUnpin for GraphBuilder
impl UnwindSafe for GraphBuilder
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