Struct openapiv3::PathItem[][src]

pub struct PathItem {
    pub get: Option<Operation>,
    pub put: Option<Operation>,
    pub post: Option<Operation>,
    pub delete: Option<Operation>,
    pub options: Option<Operation>,
    pub head: Option<Operation>,
    pub patch: Option<Operation>,
    pub trace: Option<Operation>,
    pub servers: Vec<Server>,
    pub parameters: Vec<ReferenceOr<Parameter>>,
    pub extensions: IndexMap<String, Value>,
}

Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.

Fields

get: Option<Operation>put: Option<Operation>post: Option<Operation>delete: Option<Operation>options: Option<Operation>head: Option<Operation>patch: Option<Operation>trace: Option<Operation>servers: Vec<Server>

An alternative server array to service all operations in this path.

parameters: Vec<ReferenceOr<Parameter>>

A list of parameters that are applicable for all the operations described under this path. These parameters can be overridden at the operation level, but cannot be removed there. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object’s components/parameters.

extensions: IndexMap<String, Value>

Inline extensions to this object.

Implementations

impl PathItem[src]

pub fn iter(&self) -> impl Iterator<Item = &Operation> + '_[src]

Trait Implementations

impl Clone for PathItem[src]

impl Debug for PathItem[src]

impl Default for PathItem[src]

impl<'de> Deserialize<'de> for PathItem[src]

impl PartialEq<PathItem> for PathItem[src]

impl Serialize for PathItem[src]

impl StructuralPartialEq for PathItem[src]

Auto Trait Implementations

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.