pub struct PathItem {Show 13 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 parameters: Vec<RefOr<Parameter>>,
pub x_fields: HashMap<String, Value>,
pub trace: Option<Operation>,
pub servers: Vec<Server>,
}
Expand description
Path Item Object
Describes the operations available on a single path. A Path Item may be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.
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>
§parameters: Vec<RefOr<Parameter>>
§x_fields: HashMap<String, Value>
Allows extensions to the Swagger Schema. The field name MUST begin with x-, for example, x-internal-id. The value can be null, a primitive, an array or an object. See Vendor Extensions for further details.
trace: Option<Operation>
§servers: Vec<Server>
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
Source§impl Resolvable for PathItem
impl Resolvable for PathItem
impl StructuralPartialEq for PathItem
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