pub enum Draft {
Draft4,
Draft6,
Draft7,
}
Expand description
The validator can validate JSON data against different versions of JSON Schema.
Variants§
Implementations§
Source§impl Draft
impl Draft
Sourcepub fn get_schema(self) -> &'static Value
pub fn get_schema(self) -> &'static Value
Get the JSON representation of the schema document.
Sourcepub fn get_draft_number(self) -> u8
pub fn get_draft_number(self) -> u8
Return the draft’s number.
Trait Implementations§
impl Copy for Draft
impl Eq for Draft
impl StructuralPartialEq for Draft
Auto Trait Implementations§
impl Freeze for Draft
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnwindSafe for Draft
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