[][src]Struct paperclip::v2::models::Operation

pub struct Operation<P, R> {
    pub operation_id: Option<String>,
    pub description: Option<String>,
    pub consumes: Option<BTreeSet<MediaRange>>,
    pub produces: Option<BTreeSet<MediaRange>>,
    pub security: Vec<BTreeMap<String, Vec<String>>>,
    pub schemes: BTreeSet<OperationProtocol>,
    pub responses: BTreeMap<String, Either<Reference, R>>,
    pub parameters: Vec<Either<Reference, P>>,
    pub deprecated: bool,
}

Operation object.

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

Fields

operation_id: Option<String>description: Option<String>consumes: Option<BTreeSet<MediaRange>>produces: Option<BTreeSet<MediaRange>>security: Vec<BTreeMap<String, Vec<String>>>schemes: BTreeSet<OperationProtocol>responses: BTreeMap<String, Either<Reference, R>>parameters: Vec<Either<Reference, P>>deprecated: bool

Implementations

impl<S> Operation<Parameter<S>, Response<S>>[src]

pub fn set_parameter_names_from_path_template(&mut self, path: &str)[src]

Overwrites the names of parameters in this operation using the given path template.

Trait Implementations

impl<P, R> Clone for Operation<P, R> where
    P: Clone,
    R: Clone
[src]

impl<P, R> Debug for Operation<P, R> where
    P: Debug,
    R: Debug
[src]

impl<P, R> Default for Operation<P, R> where
    P: Default,
    R: Default
[src]

impl<'de, P, R> Deserialize<'de> for Operation<P, R> where
    P: Deserialize<'de>,
    R: Deserialize<'de>, 
[src]

impl<P, R> Serialize for Operation<P, R> where
    P: Serialize,
    R: Serialize
[src]

Auto Trait Implementations

impl<P, R> RefUnwindSafe for Operation<P, R> where
    P: RefUnwindSafe,
    R: RefUnwindSafe

impl<P, R> Send for Operation<P, R> where
    P: Send,
    R: Send

impl<P, R> Sync for Operation<P, R> where
    P: Sync,
    R: Sync

impl<P, R> Unpin for Operation<P, R> where
    P: Unpin,
    R: Unpin

impl<P, R> UnwindSafe for Operation<P, R> where
    P: UnwindSafe,
    R: RefUnwindSafe + UnwindSafe

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.

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