pub struct Operation {
pub tags: Option<Vec<String>>,
pub summary: Option<String>,
pub description: Option<String>,
pub external_docs: Option<Box<ExternalDocumentation>>,
pub operation_id: Option<String>,
pub parameters: Option<Vec<ObjectOrRef<Parameter>>>,
pub request_body: Option<ObjectOrRef<RequestBody>>,
pub responses: Option<BTreeMap<String, ObjectOrRef<Response>>>,
pub callbacks: Option<BTreeMap<String, Value>>,
pub deprecated: Option<bool>,
pub security: Option<Vec<BTreeMap<String, Value>>>,
pub servers: Option<Vec<Server>>,
}Fields§
§summary: Option<String>§description: Option<String>§external_docs: Option<Box<ExternalDocumentation>>§operation_id: Option<String>§parameters: Option<Vec<ObjectOrRef<Parameter>>>§request_body: Option<ObjectOrRef<RequestBody>>§responses: Option<BTreeMap<String, ObjectOrRef<Response>>>§callbacks: Option<BTreeMap<String, Value>>§deprecated: Option<bool>§security: Option<Vec<BTreeMap<String, Value>>>§servers: Option<Vec<Server>>Implementations§
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