pub struct WorkflowBuilder { /* private fields */ }Expand description
Builder pattern for constructing workflows programmatically
Implementations§
Source§impl WorkflowBuilder
impl WorkflowBuilder
pub fn new() -> Self
pub fn name(self, name: impl Into<String>) -> Self
pub fn version(self, version: impl Into<String>) -> Self
pub fn description(self, description: impl Into<String>) -> Self
pub fn add_input(self, input: InputDefinition) -> Self
pub fn add_output(self, output: OutputDefinition) -> Self
pub fn add_step(self, step: StepDefinition) -> Self
pub fn add_connection(self, connection: Connection) -> Self
pub fn execution_config(self, config: ExecutionConfig) -> Self
pub fn build(self) -> WorkflowDefinition
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorkflowBuilder
impl RefUnwindSafe for WorkflowBuilder
impl Send for WorkflowBuilder
impl Sync for WorkflowBuilder
impl Unpin for WorkflowBuilder
impl UnwindSafe for WorkflowBuilder
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more