pub struct PathItem {
pub get: Option<Operation>,
pub post: Option<Operation>,
pub put: Option<Operation>,
pub patch: Option<Operation>,
pub delete: Option<Operation>,
pub parameters: Vec<ParameterOrRef>,
}Fields§
§get: Option<Operation>§post: Option<Operation>§put: Option<Operation>§patch: Option<Operation>§delete: Option<Operation>§parameters: Vec<ParameterOrRef>Implementations§
Source§impl PathItem
impl PathItem
Sourcepub fn operations(&self) -> impl Iterator<Item = (&'static str, &Operation)>
pub fn operations(&self) -> impl Iterator<Item = (&'static str, &Operation)>
Iterate over all (method_name, operation) pairs defined on this path.
Sourcepub fn operations_mut(
&mut self,
) -> impl Iterator<Item = (&'static str, &mut Operation)>
pub fn operations_mut( &mut self, ) -> impl Iterator<Item = (&'static str, &mut Operation)>
Iterate over mutable references to all operations.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PathItem
impl<'de> Deserialize<'de> for PathItem
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
Auto Trait Implementations§
impl Freeze for PathItem
impl RefUnwindSafe for PathItem
impl Send for PathItem
impl Sync for PathItem
impl Unpin for PathItem
impl UnsafeUnpin for PathItem
impl UnwindSafe for PathItem
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