pub struct FlowBuilder { /* private fields */ }Expand description
Builder for creating Flow instances with reduced boilerplate.
Implementations§
Source§impl FlowBuilder
impl FlowBuilder
Sourcepub fn description<S: Into<String>>(self, desc: S) -> Self
pub fn description<S: Into<String>>(self, desc: S) -> Self
Set the flow description.
Sourcepub fn input_schema(self, schema: SchemaRef) -> Self
pub fn input_schema(self, schema: SchemaRef) -> Self
Set the input schema.
Sourcepub fn output_schema(self, schema: SchemaRef) -> Self
pub fn output_schema(self, schema: SchemaRef) -> Self
Set the output schema.
Sourcepub fn steps<I: IntoIterator<Item = Step>>(self, steps: I) -> Self
pub fn steps<I: IntoIterator<Item = Step>>(self, steps: I) -> Self
Add multiple steps to the flow.
Sourcepub fn variables(self, variables: VariableSchema) -> Self
pub fn variables(self, variables: VariableSchema) -> Self
Set the variables schema for the flow.
Sourcepub fn test_config(self, test: TestConfig) -> Self
pub fn test_config(self, test: TestConfig) -> Self
Set the test configuration.
Sourcepub fn examples(self, examples: Vec<ExampleInput>) -> Self
pub fn examples(self, examples: Vec<ExampleInput>) -> Self
Set the examples.
Trait Implementations§
Source§impl Default for FlowBuilder
impl Default for FlowBuilder
Source§fn default() -> FlowBuilder
fn default() -> FlowBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FlowBuilder
impl RefUnwindSafe for FlowBuilder
impl Send for FlowBuilder
impl Sync for FlowBuilder
impl Unpin for FlowBuilder
impl UnsafeUnpin for FlowBuilder
impl UnwindSafe for FlowBuilder
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