pub trait Rule: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn code(&self) -> &str;
fn severity(&self) -> IssueLevel;
fn validate(&self, input: &str) -> Result<Vec<Issue>>;
}Expand description
Rule trait - all validators implement this
Required Methods§
Sourcefn severity(&self) -> IssueLevel
fn severity(&self) -> IssueLevel
Get the default severity