[][src]Struct paperclip::v2::models::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.



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 Debug for DefaultSchema[src]

impl Default for DefaultSchema[src]

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

impl Schema for DefaultSchema[src]

impl Serialize for DefaultSchema[src]

Auto Trait Implementations

impl !RefUnwindSafe for DefaultSchema

impl Send for DefaultSchema

impl Sync for DefaultSchema

impl Unpin for DefaultSchema

impl !UnwindSafe for DefaultSchema

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

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

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err

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