Struct valico::json_schema::schema::ScopedSchema
source · pub struct ScopedSchema<'a> { /* private fields */ }
Implementations§
source§impl<'a> ScopedSchema<'a>
impl<'a> ScopedSchema<'a>
pub fn new(scope: &'a Scope, schema: &'a Schema) -> ScopedSchema<'a>
pub fn validate(&self, data: &Value) -> ValidationState
pub fn validate_in(&self, data: &Value, path: &str) -> ValidationState
Methods from Deref<Target = Schema>§
pub fn resolve(&self, id: &str) -> Option<&Schema>
pub fn resolve_fragment(&self, fragment: &str) -> Option<&Schema>
Trait Implementations§
source§impl<'a> Debug for ScopedSchema<'a>
impl<'a> Debug for ScopedSchema<'a>
Auto Trait Implementations§
impl<'a> Freeze for ScopedSchema<'a>
impl<'a> !RefUnwindSafe for ScopedSchema<'a>
impl<'a> !Send for ScopedSchema<'a>
impl<'a> !Sync for ScopedSchema<'a>
impl<'a> Unpin for ScopedSchema<'a>
impl<'a> !UnwindSafe for ScopedSchema<'a>
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