pub struct SchemaValidator { /* private fields */ }Expand description
Schema validator with cached compiled schema
Implementations§
Source§impl SchemaValidator
impl SchemaValidator
Sourcepub fn validate(&self, values: &JsonValue) -> ValidationResult
pub fn validate(&self, values: &JsonValue) -> ValidationResult
Validate values against the schema
Sourcepub fn defaults_as_values(&self) -> Values
pub fn defaults_as_values(&self) -> Values
Get defaults as Values
Auto Trait Implementations§
impl Freeze for SchemaValidator
impl !RefUnwindSafe for SchemaValidator
impl Send for SchemaValidator
impl Sync for SchemaValidator
impl Unpin for SchemaValidator
impl !UnwindSafe for SchemaValidator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more