Struct json_model::Validator
source · pub struct Validator { /* private fields */ }
Implementations
sourceimpl Validator
impl Validator
pub fn new() -> Result<Self, Error>
pub fn load_str(self, json: &str) -> Result<Self, Error>
pub fn load_json(self, json: &Value) -> Result<Self, Error>
pub fn finalize(self) -> Result<Self, Error>
pub fn validate_json(
&self,
ptr: &str,
json: &Value
) -> Result<(), ValidationError>
Auto Trait Implementations
impl !RefUnwindSafe for Validator
impl !Send for Validator
impl !Sync for Validator
impl Unpin for Validator
impl !UnwindSafe for Validator
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more