pub trait Validator {
    // Required method
    fn validate(&self, item: &Value, _: &str) -> ValidatorResult;
}

Required Methods§

source

fn validate(&self, item: &Value, _: &str) -> ValidatorResult

Trait Implementations§

source§

impl Debug for dyn Validator + 'static

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

source§

impl Validator for Regex

source§

fn validate(&self, val: &Value, path: &str) -> ValidatorResult

Implementors§