trait Validator {
    fn validate(&self, model: &Model) -> ValidationResult;
}
Expand description

A common trait shared by all validators.

Required Methods§

Perform the validation logic of this Validator instance against the given query graph model.

Return a Result of type () if the model is valid, or a Vec<ValidationError> consisting of validation errors discovered by this validator.

Implementors§