[][src]Struct paperclip::v2::codegen::object::Parameter

pub struct Parameter {
    pub name: String,
    pub description: Option<String>,
    pub ty_path: String,
    pub required: bool,
    pub presence: ParameterIn,
    pub delimiting: Vec<CollectionFormat>,
}

Represents some parameter somewhere (header, path, query, etc.).

Fields

name: String

Name of the parameter.

description: Option<String>

Description of this operation (if any), to be used for docs.

ty_path: String

Type of the parameter as a path.

required: bool

Whether this parameter is required.

presence: ParameterIn

Where the parameter lives.

delimiting: Vec<CollectionFormat>

If the parameter is an array of values, then the format for collecting them.

Trait Implementations

impl Clone for Parameter[src]

impl Debug for Parameter[src]

Auto Trait Implementations

impl RefUnwindSafe for Parameter

impl Send for Parameter

impl Sync for Parameter

impl Unpin for Parameter

impl UnwindSafe for Parameter

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

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