pub trait Validator<T>: Display {
    // Required method
    fn check(&self, value: &T) -> bool;
}
Expand description

Represents a validator for validate the input value.

Required Methods§

source

fn check(&self, value: &T) -> bool

Check the value is valid.

Implementors§