pub struct Config<'a> { /* private fields */ }
Expand description

A structure to hold configuration for a validation run.

Implementations

Get the validator object for the draft in use.

Get the string format checker for the draft in use.

Get the draft number in use.

Get the metaschema associated with the draft in use.

Get the resolver for the parsing context.

Get the schema currently being checked against.

Create a new Config object from a given schema.

Will use the Draft of JSON schema specified by draft. If draft is None, it will be automatically determined from the $schema entry in the given schema. If no $schema entry is present Draft 7 will be used by default.

Validate the given JSON instance against the schema.

Validate the schema in this Config object against the metaschema.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.