[][src]Trait jsonschema_valid::schemas::Draft

pub trait Draft {
    fn get_validator(
        &self,
        key: &str
    ) -> Option<fn(cfg: &Config, instance: &Value, schema: &Value, parent_schema: &Map<String, Value>, instance_ctx: &Context, schema_ctx: &Context, ref_ctx: &Context, errors: &mut dyn ErrorRecorder) -> Option<()>>;
fn get_schema(&self) -> &'static Value;
fn get_format_checker(
        &self,
        format: &str
    ) -> Option<fn(cfg: &Config, value: &str) -> bool>;
fn get_draft_number(&self) -> u8; }

Required methods

fn get_validator(
    &self,
    key: &str
) -> Option<fn(cfg: &Config, instance: &Value, schema: &Value, parent_schema: &Map<String, Value>, instance_ctx: &Context, schema_ctx: &Context, ref_ctx: &Context, errors: &mut dyn ErrorRecorder) -> Option<()>>

fn get_schema(&self) -> &'static Value

fn get_format_checker(
    &self,
    format: &str
) -> Option<fn(cfg: &Config, value: &str) -> bool>

fn get_draft_number(&self) -> u8

Loading content...

Implementors

impl Draft for Draft4[src]

impl Draft for Draft6[src]

impl Draft for Draft7[src]

Loading content...