[][src]Enum openapi::v2::ParameterOrRef

pub enum ParameterOrRef {
    Parameter {
        name: String,
        location: String,
        required: Option<bool>,
        schema: Option<Schema>,
        unique_items: Option<bool>,
        param_type: Option<String>,
        format: Option<String>,
        description: Option<String>,
        collection_format: Option<String>,
        default: Option<Value>,
        items: Option<Schema>,
        additional_properties: Option<Schema>,
    },
    Ref {
        ref_path: String,
    },
}

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

Variants

Parameter

both bodyParameter and nonBodyParameter in one for now

Fields of Parameter

name: String

The name of the parameter.

location: String

values depend on parameter type may be header, query, 'path, formData`

required: Option<bool>schema: Option<Schema>unique_items: Option<bool>param_type: Option<String>

string, number, boolean, integer, array, file ( only for formData )

format: Option<String>description: Option<String>

A brief description of the parameter. This could contain examples of use. GitHub Flavored Markdown is allowed.

collection_format: Option<String>default: Option<Value>items: Option<Schema>additional_properties: Option<Schema>
Ref

Fields of Ref

ref_path: String

Trait Implementations

impl Clone for ParameterOrRef[src]

impl Debug for ParameterOrRef[src]

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

impl PartialEq<ParameterOrRef> for ParameterOrRef[src]

impl Serialize for ParameterOrRef[src]

impl StructuralPartialEq for ParameterOrRef[src]

Auto Trait Implementations

impl RefUnwindSafe for ParameterOrRef

impl Send for ParameterOrRef

impl Sync for ParameterOrRef

impl Unpin for ParameterOrRef

impl UnwindSafe for ParameterOrRef

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.