pub struct Operation {
pub operation_id: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub tags: Vec<String>,
pub parameters: Vec<Parameter>,
pub request_body_schema: Option<Value>,
pub response_schemas: Vec<(String, Option<Value>)>,
pub raw: Value,
}Expand description
A single HTTP operation (e.g. GET /pets).
Fields§
§operation_id: Option<String>The operationId, if present.
summary: Option<String>Human-readable summary.
description: Option<String>Longer description.
Tags for grouping.
parameters: Vec<Parameter>Parameters (path, query, header, cookie).
request_body_schema: Option<Value>Request body schema, if any.
response_schemas: Vec<(String, Option<Value>)>Response schemas keyed by status code.
raw: ValueRaw operation object for extension extraction.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin 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