[−]Struct rweb::openapi::PathItem
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
reference: Cow<'static, str>
Allows for an external definition of this path item. The referenced structure MUST be in the format of a Path Item Object. If there are conflicts between the referenced definition and this Path Item's definition, the behavior is undefined.
summary: Cow<'static, str>
An optional, string summary, intended to apply to all operations in this path.
description: Cow<'static, str>
An optional, string description, intended to apply to all operations in this path. CommonMark syntax MAY be used for rich text representation.
get: Option<Operation>
A definition of a GET operation on this path.
put: Option<Operation>
A definition of a PUT operation on this path.
post: Option<Operation>
A definition of a POST operation on this path.
delete: Option<Operation>
A definition of a DELETE operation on this path.
options: Option<Operation>
A definition of a OPTIONS operation on this path.
head: Option<Operation>
A definition of a HEAD operation on this path.
patch: Option<Operation>
A definition of a PATCH operation on this path.
trace: Option<Operation>
A definition of a TRACE operation on this path.
servers: Vec<Server>
An alternative server
array to service all operations in this path.
parameters: Vec<ObjectOrReference<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.
Trait Implementations
impl Clone for PathItem
fn clone(&self) -> PathItem
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PathItem
impl Default for PathItem
impl<'de> Deserialize<'de> for PathItem
fn deserialize<__D>(
__deserializer: __D
) -> Result<PathItem, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<PathItem, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl PartialEq<PathItem> for PathItem
impl Serialize for PathItem
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
impl StructuralPartialEq for PathItem
Auto Trait Implementations
impl RefUnwindSafe for PathItem
impl Send for PathItem
impl Sync for PathItem
impl Unpin for PathItem
impl UnwindSafe for PathItem
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,