Enum jsonschema_valid_compat::schemas::Draft[][src]

pub enum Draft {
    Draft4,
    Draft6,
    Draft7,
}

The validator can validate JSON data against different versions of JSON Schema.

Variants

Draft4

JSONSchema Draft 4

Draft6

JSONSchema Draft 6

Draft7

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.