pub trait PipelineOperator:
Send
+ Sync
+ Debug {
// Required methods
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut FlowContext,
) -> Pin<Box<dyn Future<Output = Result<OpResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn name(&self) -> &str;
}Expand description
Trait for pipeline operators
Each operator receives a mutable FlowContext and returns an OpResult
indicating whether to continue, drop, or fan out.
§Implementors
ResolveOp— resolves entities via LinkService/EntityFetcherFilterOp— evaluates boolean conditionsMapOp— transforms payload via Tera templatesDeliverOp— delivers to sinks
Required Methods§
Sourcefn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut FlowContext,
) -> Pin<Box<dyn Future<Output = Result<OpResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
ctx: &'life1 mut FlowContext,
) -> Pin<Box<dyn Future<Output = Result<OpResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Execute this operator on the given context
May modify the context (e.g., adding variables) and returns
an OpResult indicating how to proceed.