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 consumes: Option<Vec<String>>,
pub produces: Option<Vec<String>>,
pub parameters: Option<Vec<ParameterOrRef>>,
pub responses: Responses,
pub schemas: Option<TransferProtocol>,
pub deprecated: Option<String>,
pub security: Option<Vec<SecurityRequirementObject>>,
pub extensions: Extensions,
}Expand description
§Operation
Describes a single API operation on a path.
Fields§
A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier.
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.
consumes: Option<Vec<String>>A list of MIME types the operation can consume.
produces: Option<Vec<String>>A list of MIME types the operation can produce.
parameters: Option<Vec<ParameterOrRef>>A list of parameters that are applicable for this operation.
responses: ResponsesThe list of possible responses as they are returned from executing this operation.
schemas: Option<TransferProtocol>The transfer protocol for the operation.
deprecated: Option<String>Declares this operation to be deprecated.
security: Option<Vec<SecurityRequirementObject>>A declaration of which security schemes are applied for this operation.
extensions: Extensions