Skip to main content

PlanValidator

Trait PlanValidator 

Source
pub trait PlanValidator: Send + Sync {
    // Required method
    fn validate(&self, plan: &ExecutionPlan) -> Result<(), PlanValidationError>;
}
Expand description

Validator interface for rejecting malformed execution plans before a run starts.

Typical validators enforce graph-shape rules such as:

  • all state identifiers are unique
  • every dependency edge points to an existing state
  • the plan is acyclic

Required Methods§

Source

fn validate(&self, plan: &ExecutionPlan) -> Result<(), PlanValidationError>

Validates the supplied execution plan.

Implementors§