Trait StepBuilderTrait

Source
pub trait StepBuilderTrait {
    // Required methods
    fn decider(self, decider: DeciderCallback) -> Self;
    fn throw_tolerant(self) -> Self;
    fn get(name: String) -> Self;
    fn validate(self) -> Self;
    fn build(self) -> SyncStep;
}
Expand description

A trait for building synchronous steps.

Required Methods§

Source

fn decider(self, decider: DeciderCallback) -> Self

Sets the decider callback for the step.

§Arguments
  • decider - The decider callback function.
§Returns

Returns a modified builder instance.

Source

fn throw_tolerant(self) -> Self

Configures the step to be tolerant to thrown exceptions.

§Returns

Returns a modified builder instance.

Source

fn get(name: String) -> Self

Initializes a new builder instance with the given name.

§Arguments
  • name - The name of the step.
§Returns

Returns a new builder instance.

Source

fn validate(self) -> Self

Validates the builder configuration.

§Returns

Returns a modified builder instance if validation succeeds.

Source

fn build(self) -> SyncStep

Builds and returns the configured synchronous step.

§Returns

Returns the configured synchronous step.

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§

Source§

impl StepBuilderTrait for SimpleStepBuilder

Source§

impl<I: Sized + 'static, O: Sized + 'static> StepBuilderTrait for ComplexStepBuilder<I, O>
where Self: Sized,