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

pub struct OpRequirement {
    pub id: Option<String>,
    pub description: Option<String>,
    pub deprecated: bool,
    pub params: Vec<Parameter>,
    pub body_required: bool,
    pub listable: bool,
    pub response: Response<String>,
    pub encoding: Option<(String, Arc<Coder>)>,
    pub decoding: Option<(String, Arc<Coder>)>,
}

Requirement for an object corresponding to some operation.

Fields

id: Option<String>

Operation ID (if it's provided in the schema).

If there are multiple operations for the same path, then we attempt to use this.

description: Option<String>

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

deprecated: bool

Whether the operation is deprecated or not.

params: Vec<Parameter>

Parameters required for this operation.

body_required: bool

Whether the object itself is required (in body) for this operation.

listable: bool

Whether this operation returns a list of the associated ApiObject.

response: Response<String>

Response information for this operation.

encoding: Option<(String, Arc<Coder>)>

Preferred media range and encoder for the client. This is ignored for methods that don't accept a body. If there's no coder, then JSON encoding is assumed.

decoding: Option<(String, Arc<Coder>)>

Preferred media range and decoder for the client. This is used only when objects make use of Any type. If there's no coder, then JSON encoding is assumed.

Trait Implementations

impl Clone for OpRequirement[src]

impl Debug for OpRequirement[src]

Auto Trait Implementations

impl RefUnwindSafe for OpRequirement

impl Send for OpRequirement

impl Sync for OpRequirement

impl Unpin for OpRequirement

impl UnwindSafe for OpRequirement

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