pub struct WorkflowEngineBuilder { /* private fields */ }
Expand description
Workflow engine builder
Implementations§
Source§impl WorkflowEngineBuilder
impl WorkflowEngineBuilder
pub fn new() -> Self
Sourcepub fn with_storage_backend(self, backend: StorageBackend) -> Self
pub fn with_storage_backend(self, backend: StorageBackend) -> Self
Configure storage backend
Sourcepub fn with_memory_storage(self) -> Self
pub fn with_memory_storage(self) -> Self
Use memory storage (default)
Sourcepub async fn build(self) -> Result<ExtendedWorkflowEngine, WorkflowError>
pub async fn build(self) -> Result<ExtendedWorkflowEngine, WorkflowError>
Use Kotoba storage backend for full integration
Auto Trait Implementations§
impl Freeze for WorkflowEngineBuilder
impl RefUnwindSafe for WorkflowEngineBuilder
impl Send for WorkflowEngineBuilder
impl Sync for WorkflowEngineBuilder
impl Unpin for WorkflowEngineBuilder
impl UnwindSafe for WorkflowEngineBuilder
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