poem_openapi

Trait Validator

Source
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§