pub struct Operation {Show 13 fields
pub operation_id: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub tags: Option<Vec<String>>,
pub deprecated: Option<bool>,
pub parameters: Option<Vec<Parameter>>,
pub request_body: Option<RequestBody>,
pub responses: Option<BTreeMap<String, Response>>,
pub callbacks: Option<BTreeMap<String, Callback>>,
pub security: Option<Vec<BTreeMap<String, Vec<String>>>>,
pub servers: Option<Vec<Server>>,
pub external_docs: Option<ExternalDocs>,
pub extensions: Extensions,
}Expand description
OpenAPI Operation Object
Fields§
§operation_id: Option<String>§summary: Option<String>§description: Option<String>§deprecated: Option<bool>§parameters: Option<Vec<Parameter>>§request_body: Option<RequestBody>§responses: Option<BTreeMap<String, Response>>§callbacks: Option<BTreeMap<String, Callback>>§security: Option<Vec<BTreeMap<String, Vec<String>>>>§servers: Option<Vec<Server>>§external_docs: Option<ExternalDocs>§extensions: ExtensionsTrait 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
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