pub trait OptimizationRule: Send + Sync {
// Required methods
fn apply<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
workflow: &'life1 WorkflowIR,
context: &'life2 OptimizationContext,
) -> Pin<Box<dyn Future<Output = Option<OptimizationResult>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn name(&self) -> &str;
fn priority(&self) -> i32;
}