[][src]Struct schemars::schema::SubschemaValidation

pub struct SubschemaValidation {
    pub all_of: Option<Vec<Schema>>,
    pub any_of: Option<Vec<Schema>>,
    pub one_of: Option<Vec<Schema>>,
    pub not: Option<Box<Schema>>,
    pub if_schema: Option<Box<Schema>>,
    pub then_schema: Option<Box<Schema>>,
    pub else_schema: Option<Box<Schema>>,
}

Properties of a SchemaObject which define validation assertions in terms of other schemas.

Fields

all_of: Option<Vec<Schema>>

The allOf keyword.

See JSON Schema 9.2.1.1. "allOf".

any_of: Option<Vec<Schema>>

The anyOf keyword.

See JSON Schema 9.2.1.2. "anyOf".

one_of: Option<Vec<Schema>>

The oneOf keyword.

See JSON Schema 9.2.1.3. "oneOf".

not: Option<Box<Schema>>

The not keyword.

See JSON Schema 9.2.1.4. "not".

if_schema: Option<Box<Schema>>

The if keyword.

See JSON Schema 9.2.2.1. "if".

then_schema: Option<Box<Schema>>

The then keyword.

See JSON Schema 9.2.2.2. "then".

else_schema: Option<Box<Schema>>

The else keyword.

See JSON Schema 9.2.2.3. "else".

Trait Implementations

impl Clone for SubschemaValidation[src]

impl Debug for SubschemaValidation[src]

impl Default for SubschemaValidation[src]

impl<'de> Deserialize<'de> for SubschemaValidation where
    SubschemaValidation: Default
[src]

impl JsonSchema for SubschemaValidation[src]

impl PartialEq<SubschemaValidation> for SubschemaValidation[src]

impl Serialize for SubschemaValidation[src]

impl StructuralPartialEq for SubschemaValidation[src]

Auto Trait Implementations

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> DynClone for T where
    T: Clone
[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.