Skip to main content

GraphBuilderSubgraphExt

Trait GraphBuilderSubgraphExt 

Source
pub trait GraphBuilderSubgraphExt {
    // Required methods
    fn add_subgraph(
        self,
        id: impl Into<String>,
        graph: Graph,
        mapping: StateMapping,
    ) -> Self;
    fn add_parallel_subgraphs(
        self,
        id: impl Into<String>,
        parallel: ParallelSubgraphs,
    ) -> Self;
    fn add_conditional_subgraph(
        self,
        id: impl Into<String>,
        conditional: ConditionalSubgraph,
    ) -> Self;
    fn add_loop_subgraph(
        self,
        id: impl Into<String>,
        loop_sg: LoopSubgraph,
    ) -> Self;
    fn add_retry_subgraph(
        self,
        id: impl Into<String>,
        retry: RetrySubgraph,
    ) -> Self;
}
Expand description

Extension trait for GraphBuilder to add subgraph nodes

Required Methods§

Source

fn add_subgraph( self, id: impl Into<String>, graph: Graph, mapping: StateMapping, ) -> Self

Add a subgraph as a node

Source

fn add_parallel_subgraphs( self, id: impl Into<String>, parallel: ParallelSubgraphs, ) -> Self

Add a parallel subgraphs node

Source

fn add_conditional_subgraph( self, id: impl Into<String>, conditional: ConditionalSubgraph, ) -> Self

Add a conditional subgraph node

Source

fn add_loop_subgraph(self, id: impl Into<String>, loop_sg: LoopSubgraph) -> Self

Add a loop subgraph node

Source

fn add_retry_subgraph(self, id: impl Into<String>, retry: RetrySubgraph) -> Self

Add a retry subgraph node

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§