Skip to main content

PipelineOperator

Trait PipelineOperator 

Source
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/EntityFetcher
  • FilterOp — evaluates boolean conditions
  • MapOp — transforms payload via Tera templates
  • DeliverOp — delivers to sinks

Required Methods§

Source

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.

Source

fn name(&self) -> &str

Human-readable name for logging/debugging

Implementors§