[][src]Struct openapi::v2::Schema

pub struct Schema {
    pub ref_path: Option<String>,
    pub description: Option<String>,
    pub schema_type: Option<String>,
    pub format: Option<String>,
    pub enum_values: Option<Vec<String>>,
    pub required: Option<Vec<String>>,
    pub items: Option<Box<Schema>>,
    pub properties: Option<BTreeMap<String, Schema>>,
    pub all_of: Option<Vec<Box<Schema>>>,
    pub other: BTreeMap<String, Value>,
}

A JSON schema definition describing the shape and properties of an object.

This may also contain a $ref to another definition

Fields

ref_path: Option<String>

JSON reference path to another defintion

description: Option<String>schema_type: Option<String>format: Option<String>enum_values: Option<Vec<String>>required: Option<Vec<String>>items: Option<Box<Schema>>properties: Option<BTreeMap<String, Schema>>all_of: Option<Vec<Box<Schema>>>other: BTreeMap<String, Value>

Trait Implementations

impl Clone for Schema[src]

impl Debug for Schema[src]

impl Default for Schema[src]

impl<'de> Deserialize<'de> for Schema[src]

impl PartialEq<Schema> for Schema[src]

impl Serialize for Schema[src]

impl StructuralPartialEq for Schema[src]

Auto Trait Implementations

impl RefUnwindSafe for Schema

impl Send for Schema

impl Sync for Schema

impl Unpin for Schema

impl UnwindSafe for Schema

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> 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.