pub struct WorkflowRegistry { /* private fields */ }Expand description
Registry for workflow definitions
Implementations§
Source§impl WorkflowRegistry
impl WorkflowRegistry
Sourcepub async fn register(
&self,
definition: WorkflowDefinition,
) -> Result<(), WorkflowError>
pub async fn register( &self, definition: WorkflowDefinition, ) -> Result<(), WorkflowError>
Register a workflow definition
Sourcepub async fn get(
&self,
id: &str,
version: &Version,
) -> Option<WorkflowDefinition>
pub async fn get( &self, id: &str, version: &Version, ) -> Option<WorkflowDefinition>
Get a workflow definition by ID and version
Sourcepub async fn get_latest(&self, id: &str) -> Option<WorkflowDefinition>
pub async fn get_latest(&self, id: &str) -> Option<WorkflowDefinition>
Get the latest version of a workflow
Sourcepub async fn load_defaults(&self) -> Result<(), WorkflowError>
pub async fn load_defaults(&self) -> Result<(), WorkflowError>
Load default workflow templates
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for WorkflowRegistry
impl !RefUnwindSafe for WorkflowRegistry
impl Send for WorkflowRegistry
impl Sync for WorkflowRegistry
impl Unpin for WorkflowRegistry
impl !UnwindSafe for WorkflowRegistry
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