[][src]Struct tamasfe_schemars::schema::RootSchema

pub struct RootSchema {
    pub meta_schema: Option<String>,
    pub schema: SchemaObject,
    pub definitions: Map<String, Schema>,
}

The root object of a JSON Schema document.

Fields

meta_schema: Option<String>

The $schema keyword.

See JSON Schema 8.1.1. The "$schema" Keyword.

schema: SchemaObject

The root schema itself.

definitions: Map<String, Schema>

The definitions keyword.

In JSON Schema draft 2019-09 this was replaced by $defs, but in Schemars this is still serialized as definitions for backward-compatibility.

See JSON Schema 8.2.5. Schema Re-Use With "$defs", and JSON Schema (draft 07) 9. Schema Re-Use With "definitions".

Trait Implementations

impl Clone for RootSchema[src]

impl Debug for RootSchema[src]

impl Default for RootSchema[src]

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

impl JsonSchema for RootSchema[src]

impl PartialEq<RootSchema> for RootSchema[src]

impl Serialize for RootSchema[src]

impl StructuralPartialEq for RootSchema[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.