pub struct PathItem {
pub reference: 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: Option<Vec<ParameterOrRef>>,
}
Expand description
§Path Item
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§
§reference: Option<String>
Allows for an external definition of this path item. The referenced structure MUST be in the format of a Path Item Object. If there are conflicts between the referenced definition and this Path Item’s definition, the behavior is undefined.
get: Option<Operation>
A definition of a GET operation on this path.
put: Option<Operation>
A definition of a GET operation on this path.
post: Option<Operation>
A definition of a GET operation on this path.
delete: Option<Operation>
A definition of a GET operation on this path.
options: Option<Operation>
A definition of a GET operation on this path.
head: Option<Operation>
A definition of a GET operation on this path.
patch: Option<Operation>
A definition of a GET operation on this path.
parameters: Option<Vec<ParameterOrRef>>
A list of parameters that are applicable for all the operations described under this path.