[][src]Struct aide::openapi::v3::definition::PathItem

pub struct PathItem {
    pub reference: Option<String>,
    pub summary: Option<String>,
    pub description: Option<String>,
    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: Option<Vec<Server>>,
    pub parameters: Vec<RefOr<Parameter>>,
    pub extensions: Map<String, Value>,
}

Fields

reference: Option<String>summary: Option<String>description: Option<String>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: Option<Vec<Server>>parameters: Vec<RefOr<Parameter>>extensions: Map<String, Value>

Implementations

impl PathItem[src]

pub fn operation(&self, method: OperationMethod) -> Option<&Operation>[src]

Returns an operation by its method

pub fn operation_mut(
    &mut self,
    method: OperationMethod
) -> &mut Option<Operation>
[src]

Returns a mutable operation by its method

pub fn operations(&self) -> impl Iterator<Item = (OperationMethod, &Operation)>[src]

Returns an iterator over the operations.

pub fn operations_mut(
    &mut self
) -> impl Iterator<Item = (OperationMethod, &mut Option<Operation>)>
[src]

Returns a mutable iterator over the operations.

Trait Implementations

impl Clone for PathItem[src]

impl Debug for PathItem[src]

impl Default for PathItem[src]

impl<'de> Deserialize<'de> for PathItem where
    PathItem: Default
[src]

impl JsonSchema 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> DynClone for T where
    T: Clone
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

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