pub struct Operation {Show 13 fields
pub tags: Vec<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub external_docs: Option<ExternalDocs>,
pub operation_id: Option<String>,
pub parameters: Vec<RefOr<Parameter>>,
pub request_body: Option<RefOr<RequestBody>>,
pub responses: Responses,
pub callbacks: Map<String, RefOr<Callback>>,
pub deprecated: bool,
pub security: Option<Vec<SecurityRequirement>>,
pub servers: Option<Vec<Server>>,
pub extensions: Object,
}
Fields§
§summary: Option<String>
§description: Option<String>
§external_docs: Option<ExternalDocs>
§operation_id: Option<String>
§parameters: Vec<RefOr<Parameter>>
§request_body: Option<RefOr<RequestBody>>
§responses: Responses
§callbacks: Map<String, RefOr<Callback>>
§deprecated: bool
§security: Option<Vec<SecurityRequirement>>
§servers: Option<Vec<Server>>
§extensions: Object
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
source§impl JsonSchema for Operation
impl JsonSchema for Operation
source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresource§impl PartialEq for Operation
impl PartialEq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
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