pub struct Operation {Show 13 fields
pub tags: Option<Vec<String>>,
pub summary: Option<String>,
pub description: Option<String>,
pub external_docs: Option<ExternalDoc>,
pub operation_id: Option<String>,
pub parameters: Option<Vec<RefOrObject<Parameter>>>,
pub request_body: Option<RefOrObject<RequestBody>>,
pub responses: Responses,
pub callbacks: Option<BTreeMap<String, RefOrObject<Callback>>>,
pub deprecated: Option<bool>,
pub security: Option<Vec<SecurityRequirement>>,
pub servers: Option<Vec<Server>>,
pub extensions: Extensions,
}
Expand description
§Operation
Describes a single API operation on a path.
Fields§
A list of tags for API documentation control.
summary: Option<String>
A short summary of what the operation does.
description: Option<String>
A verbose explanation of the operation behavior.
external_docs: Option<ExternalDoc>
Additional external documentation for this operation.
operation_id: Option<String>
Unique string used to identify the operation.
parameters: Option<Vec<RefOrObject<Parameter>>>
A list of parameters that are applicable for this operation.
request_body: Option<RefOrObject<RequestBody>>
The request body applicable for this operation.
responses: Responses
The list of possible responses as they are returned from executing this operation.
callbacks: Option<BTreeMap<String, RefOrObject<Callback>>>
A map of possible out-of band callbacks related to the parent operation.
deprecated: Option<bool>
Declares this operation to be deprecated.
security: Option<Vec<SecurityRequirement>>
A declaration of which security mechanisms can be used for this operation.
servers: Option<Vec<Server>>
An alternative server array to service this operation.
extensions: Extensions
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Operation
impl<'de> Deserialize<'de> for Operation
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
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnwindSafe for Operation
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