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§
Sourcefn validate(&self, plan: &ExecutionPlan) -> Result<(), PlanValidationError>
fn validate(&self, plan: &ExecutionPlan) -> Result<(), PlanValidationError>
Validates the supplied execution plan.