Skip to main content

WorkflowStep

Trait WorkflowStep 

Source
pub trait WorkflowStep: Send + Sync {
    // Required methods
    fn engine(&self) -> &str;
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        input: Value,
    ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

A unit of workflow work dispatched to an engine.

Required Methods§

Source

fn engine(&self) -> &str

Engine identifier (for example: "pixelforge", "oxid", "ferrox").

Source

fn execute<'life0, 'async_trait>( &'life0 self, input: Value, ) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Execute the step and return its output payload.

Implementors§