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

pub struct PathItem<P, R> {
    pub methods: BTreeMap<HttpMethod, Operation<P, R>>,
    pub parameters: Vec<Either<Reference, P>>,
}

Path item object.

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

Fields

methods: BTreeMap<HttpMethod, Operation<P, R>>parameters: Vec<Either<Reference, P>>

Methods

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

pub fn normalize(&mut self)[src]

Normalizes this operation map.

  • Collects and removes parameters shared across operations and adds them to the list global to this map.

Trait Implementations

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

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

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

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

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

Auto Trait Implementations

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

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

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

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

impl<P, R> UnwindSafe for PathItem<P, R> where
    P: RefUnwindSafe + 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: 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<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>,