Skip to main content

ValidationRule

Trait ValidationRule 

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

Validation rule trait.

Required Methods§

Source

fn validate(&self, workflow: &Workflow) -> Result<()>

Validate a workflow.

Source

fn name(&self) -> &str

Get rule name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§