pub struct PathItem {
pub get: Option<Operation>,
pub post: Option<Operation>,
pub put: Option<Operation>,
pub delete: Option<Operation>,
pub patch: Option<Operation>,
pub head: Option<Operation>,
pub options: Option<Operation>,
pub trace: Option<Operation>,
pub description: Option<String>,
pub summary: Option<String>,
pub parameters: Option<Vec<ParameterOrReference>>,
pub servers: Option<Vec<Server>>,
}Expand description
路径项
Fields§
§get: Option<Operation>GET 操作
post: Option<Operation>POST 操作
put: Option<Operation>PUT 操作
delete: Option<Operation>DELETE 操作
patch: Option<Operation>PATCH 操作
head: Option<Operation>HEAD 操作
options: Option<Operation>OPTIONS 操作
trace: Option<Operation>TRACE 操作
description: Option<String>路径描述
summary: Option<String>路径摘要
parameters: Option<Vec<ParameterOrReference>>路径参数
servers: Option<Vec<Server>>服务器列表
Implementations§
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