Expand description
Flow compiler — compiles FlowConfig YAML into executable CompiledFlow
The compiler transforms declarative flow configurations into a list of executable pipeline operators. Each CompiledFlow contains:
- An
EventMatcherfor deciding which events trigger the flow - A
Vec<Box<dyn PipelineOperator>>for the pipeline steps
§Usage
ⓘ
let config = FlowConfig { ... };
let compiled = compile_flow(&config)?;
// compiled.matcher.matches(&event) → true/false
// for op in &compiled.operators { op.execute(&mut ctx).await? }Structs§
- Compiled
Flow - A compiled flow ready for execution
Functions§
- compile_
flow - Compile a FlowConfig into a CompiledFlow
- compile_
flows - Compile multiple flows from a list of FlowConfigs