pub struct DecompositionWorkflowBuilder { /* private fields */ }Expand description
Builder for creating complex decomposition workflows
Implementations§
Source§impl DecompositionWorkflowBuilder
impl DecompositionWorkflowBuilder
Sourcepub fn new(registry: Arc<AlgorithmRegistry>) -> Self
pub fn new(registry: Arc<AlgorithmRegistry>) -> Self
Create new workflow builder
Sourcepub fn with_algorithm(self, algorithm_name: &str) -> Result<Self>
pub fn with_algorithm(self, algorithm_name: &str) -> Result<Self>
Set primary algorithm by name
Sourcepub fn with_preprocessing(
self,
step: Box<dyn PreprocessingStep>,
) -> Result<Self>
pub fn with_preprocessing( self, step: Box<dyn PreprocessingStep>, ) -> Result<Self>
Add preprocessing step
Sourcepub fn with_postprocessing(
self,
step: Box<dyn PostprocessingStep>,
) -> Result<Self>
pub fn with_postprocessing( self, step: Box<dyn PostprocessingStep>, ) -> Result<Self>
Add postprocessing step
Sourcepub fn with_fallback(self, algorithm_name: &str) -> Result<Self>
pub fn with_fallback(self, algorithm_name: &str) -> Result<Self>
Add fallback algorithm by name
Sourcepub fn with_config(self, config: PipelineConfig) -> Self
pub fn with_config(self, config: PipelineConfig) -> Self
Set pipeline configuration
Sourcepub fn build(self) -> Result<DecompositionPipeline>
pub fn build(self) -> Result<DecompositionPipeline>
Build the workflow
Auto Trait Implementations§
impl Freeze for DecompositionWorkflowBuilder
impl !RefUnwindSafe for DecompositionWorkflowBuilder
impl Send for DecompositionWorkflowBuilder
impl Sync for DecompositionWorkflowBuilder
impl Unpin for DecompositionWorkflowBuilder
impl !UnwindSafe for DecompositionWorkflowBuilder
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