Trait valico::json_schema::validators::Validator

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

Required Methods§

source

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

Trait Implementations§

source§

impl Debug for dyn Validator + Send + Sync + 'static

source§

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

Formats the value using the given formatter. Read more

Implementors§