pub struct SpecPathItem {
pub get: Option<SpecPathMethod>,
pub post: Option<SpecPathMethod>,
pub put: Option<SpecPathMethod>,
pub delete: Option<SpecPathMethod>,
pub patch: Option<SpecPathMethod>,
}Expand description
An OpenAPI path item: the operations available on a single URL path.
Path-level keys other than the HTTP methods (such as parameters
or summary) are ignored.
Fields§
§get: Option<SpecPathMethod>GET operation, if any.
post: Option<SpecPathMethod>POST operation, if any.
put: Option<SpecPathMethod>PUT operation, if any.
delete: Option<SpecPathMethod>DELETE operation, if any.
patch: Option<SpecPathMethod>PATCH operation, if any.
Implementations§
Source§impl SpecPathItem
impl SpecPathItem
Sourcepub fn methods(&self) -> impl Iterator<Item = &SpecPathMethod>
pub fn methods(&self) -> impl Iterator<Item = &SpecPathMethod>
Iterate over the operations defined on this path.
Trait Implementations§
Source§impl Clone for SpecPathItem
impl Clone for SpecPathItem
Source§impl Debug for SpecPathItem
impl Debug for SpecPathItem
Source§impl Default for SpecPathItem
impl Default for SpecPathItem
Source§impl<'de> Deserialize<'de> for SpecPathItem
impl<'de> Deserialize<'de> for SpecPathItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SpecPathItem
Source§impl PartialEq for SpecPathItem
impl PartialEq for SpecPathItem
Source§impl Serialize for SpecPathItem
impl Serialize for SpecPathItem
impl StructuralPartialEq for SpecPathItem
Auto Trait Implementations§
impl Freeze for SpecPathItem
impl RefUnwindSafe for SpecPathItem
impl Send for SpecPathItem
impl Sync for SpecPathItem
impl Unpin for SpecPathItem
impl UnsafeUnpin for SpecPathItem
impl UnwindSafe for SpecPathItem
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.