valico::json_schema::validators

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