[][src]Struct schemars::schema::Metadata

pub struct Metadata {
    pub id: Option<String>,
    pub title: Option<String>,
    pub description: Option<String>,
    pub default: Option<Value>,
    pub deprecated: bool,
    pub read_only: bool,
    pub write_only: bool,
    pub examples: Vec<Value>,
}

Properties which annotate a SchemaObject which typically have no effect when an object is being validated against the schema.

Fields

id: Option<String>title: Option<String>description: Option<String>default: Option<Value>

The default keyword.

See JSON Schema Validation 9.2. "default".

deprecated: bool

The deprecated keyword.

See JSON Schema Validation 9.3. "deprecated".

read_only: boolwrite_only: boolexamples: Vec<Value>

The examples keyword.

See JSON Schema Validation 9.5. "examples".

Trait Implementations

impl Clone for Metadata[src]

impl Debug for Metadata[src]

impl Default for Metadata[src]

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

impl JsonSchema for Metadata[src]

impl PartialEq<Metadata> for Metadata[src]

impl Serialize for Metadata[src]

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