pub struct PathItem {Show 16 fields
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 query: Option<Operation>,
pub additional_operations: Option<BTreeMap<String, Operation>>,
pub parameters: Option<Vec<Parameter>>,
pub servers: Option<Vec<Server>>,
pub reference: Option<String>,
pub extensions: Extensions,
}Expand description
OpenAPI Path Item Object
Fields§
§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>§query: Option<Operation>3.2 §“Path Item Object” — QUERY HTTP method (D1). Originally
proposed for safe, idempotent reads with a body.
additional_operations: Option<BTreeMap<String, Operation>>3.2 §“Path Item Object” — extension map for HTTP methods beyond the well-known ones (e.g. WebDAV’s PROPFIND, SEARCH; LINK/UNLINK). Keys are uppercase method names (D1).
parameters: Option<Vec<Parameter>>§servers: Option<Vec<Server>>§reference: Option<String>§extensions: ExtensionsImplementations§
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