pub struct PathItem {
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 parameters: Vec<Parameter>,
}Expand description
Path item containing operations for a specific path
Fields§
§summary: Option<String>Optional summary
description: Option<String>Optional description
get: Option<Operation>GET operation
put: Option<Operation>PUT operation
post: Option<Operation>POST operation
delete: Option<Operation>DELETE operation
options: Option<Operation>OPTIONS operation
head: Option<Operation>HEAD operation
patch: Option<Operation>PATCH operation
trace: Option<Operation>TRACE operation
parameters: Vec<Parameter>Common parameters for all operations on this path
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 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