Skip to main content

Rule

Trait Rule 

Source
pub trait Rule: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn severity(&self) -> Severity;
    fn check(&self, graph: &Graph, config: &Config) -> Vec<Violation>;
}
Expand description

Trait for validation rules.

Required Methods§

Source

fn id(&self) -> &str

Source

fn severity(&self) -> Severity

Source

fn check(&self, graph: &Graph, config: &Config) -> Vec<Violation>

Implementors§