Skip to main content

Validator

Trait Validator 

Source
pub trait Validator: Send + Sync {
    // Required methods
    fn validate(
        &self,
        test_case: &TestCase,
        result: &TestResult,
    ) -> ValidationResult;
    fn name(&self) -> &str;
}
Expand description

Validator trait

Required Methods§

Source

fn validate( &self, test_case: &TestCase, result: &TestResult, ) -> ValidationResult

Validate test result

Source

fn name(&self) -> &str

Validator name

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§