pub struct Operation {Show 16 fields
pub tags: Vec<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub external_docs: Option<ExternalDocumentation>,
pub operation_id: Option<String>,
pub parameters: Vec<RefOr<Parameter>>,
pub responses: HashMap<StringOrHttpCode, RefOr<Response>>,
pub deprecated: Option<bool>,
pub security: Vec<HashMap<String, Vec<String>>>,
pub x_fields: HashMap<String, Value>,
pub consumes: Vec<String>,
pub produces: Vec<String>,
pub schemes: Vec<Scheme>,
pub request_body: Option<RefOr<RequestBody>>,
pub callbacks: HashMap<String, Callback>,
pub servers: Vec<Server>,
}
Expand description
Operation Object
Describes a single API operation on a path.
Fields§
§summary: Option<String>
§description: Option<String>
§external_docs: Option<ExternalDocumentation>
§operation_id: Option<String>
§parameters: Vec<RefOr<Parameter>>
§responses: HashMap<StringOrHttpCode, RefOr<Response>>
§deprecated: Option<bool>
§security: Vec<HashMap<String, Vec<String>>>
§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.
consumes: Vec<String>
§produces: Vec<String>
§schemes: Vec<Scheme>
§request_body: Option<RefOr<RequestBody>>
§callbacks: HashMap<String, Callback>
§servers: Vec<Server>
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