pub struct JsonSchemaValidator { /* private fields */ }
Implementations§
Source§impl JsonSchemaValidator
impl JsonSchemaValidator
pub fn new( schema: Value, options: ValidationOptions, ) -> Result<Self, ValidationError>
pub fn validate(&self, instance: &Value) -> Vec<ValidationError>
pub fn is_valid(&self, instance: &Value) -> bool
Auto Trait Implementations§
impl Freeze for JsonSchemaValidator
impl RefUnwindSafe for JsonSchemaValidator
impl Send for JsonSchemaValidator
impl Sync for JsonSchemaValidator
impl Unpin for JsonSchemaValidator
impl UnwindSafe for JsonSchemaValidator
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