pub trait ValidationRule: Send + Sync {
// Required methods
fn validate(&self, workflow: &Workflow) -> Result<()>;
fn name(&self) -> &str;
}Expand description
Validation rule trait.
pub trait ValidationRule: Send + Sync {
// Required methods
fn validate(&self, workflow: &Workflow) -> Result<()>;
fn name(&self) -> &str;
}Validation rule trait.