[][src]Struct paperclip::v2::DefaultSchema

pub struct DefaultSchema {
    pub reference: Option<String>,
    pub title: Option<String>,
    pub description: Option<String>,
    pub data_type: Option<DataType>,
    pub format: Option<DataTypeFormat>,
    pub properties: BTreeMap<String, Resolvable<DefaultSchema>>,
    pub items: Option<Either<Resolvable<DefaultSchema>, Vec<Resolvable<DefaultSchema>>>>,
    pub enum_: Vec<Value>,
    pub extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>,
    pub required: BTreeSet<String>,
    // some fields omitted
}

Default schema if your schema doesn't have any custom fields.

https://github.com/OAI/OpenAPI-Specification/blob/master/versions/2.0.md#schemaObject

Fields

reference: Option<String>title: Option<String>description: Option<String>data_type: Option<DataType>format: Option<DataTypeFormat>properties: BTreeMap<String, Resolvable<DefaultSchema>>items: Option<Either<Resolvable<DefaultSchema>, Vec<Resolvable<DefaultSchema>>>>enum_: Vec<Value>extra_props: Option<Either<bool, Resolvable<DefaultSchema>>>required: BTreeSet<String>

Trait Implementations

impl Clone for DefaultSchema[src]

impl Default for DefaultSchema[src]

impl Serialize for DefaultSchema[src]

impl Debug for DefaultSchema[src]

impl Schema for DefaultSchema[src]

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

Auto Trait Implementations

impl Send for DefaultSchema

impl Sync for DefaultSchema

impl Unpin for DefaultSchema

impl !UnwindSafe for DefaultSchema

impl !RefUnwindSafe for DefaultSchema

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,