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



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


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

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

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

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

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

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

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: for<'de> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,