Enum jsonschema_valid_compat::schemas::Draft [−][src]
The validator can validate JSON data against different versions of JSON Schema.
Variants
JSONSchema Draft 4
JSONSchema Draft 6
JSONSchema Draft 7
Implementations
impl Draft
[src]
pub fn get_schema(self) -> &'static Value
[src]
Get the JSON representation of the schema document.
pub fn get_draft_number(self) -> u8
[src]
Return the draft’s number.
Trait Implementations
impl Clone for Draft
[src]
impl Copy for Draft
[src]
impl Debug for Draft
[src]
impl Eq for Draft
[src]
impl PartialEq<Draft> for Draft
[src]
impl StructuralEq for Draft
[src]
impl StructuralPartialEq for Draft
[src]
Auto Trait Implementations
impl RefUnwindSafe for Draft
impl Send for Draft
impl Sync for Draft
impl Unpin for Draft
impl UnwindSafe for Draft
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,