pub struct OperationInfo {
pub operation_id: String,
pub method: String,
pub path: String,
pub summary: Option<String>,
pub description: Option<String>,
pub request_body: Option<RequestBodyContent>,
pub request_body_required: bool,
pub response_schemas: BTreeMap<String, String>,
pub parameters: Vec<ParameterInfo>,
pub supports_streaming: bool,
pub stream_parameter: Option<String>,
pub tags: Vec<String>,
}Expand description
Information about an OpenAPI operation
Fields§
§operation_id: StringOperation ID
method: StringHTTP method (GET, POST, etc.)
path: StringPath template
summary: Option<String>Short summary from OpenAPI spec
description: Option<String>Longer description from OpenAPI spec
request_body: Option<RequestBodyContent>Request body content type and schema (if any)
request_body_required: boolWhether requestBody.required was true. Drives whether the generated
method takes a Body argument or Option<Body> (T11).
response_schemas: BTreeMap<String, String>Response schemas by status code
parameters: Vec<ParameterInfo>Parameters (path, query, header)
supports_streaming: boolWhether this operation supports streaming
stream_parameter: Option<String>Stream parameter name if applicable
Tags declared on the operation. Empty when the spec sets none.
Used by the server codegen selector grammar (e.g. tag:Chat)
and by openapi-to-rust server list for grouping.
Trait Implementations§
Source§impl Clone for OperationInfo
impl Clone for OperationInfo
Source§fn clone(&self) -> OperationInfo
fn clone(&self) -> OperationInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OperationInfo
impl Debug for OperationInfo
Source§impl Default for OperationInfo
impl Default for OperationInfo
Source§fn default() -> OperationInfo
fn default() -> OperationInfo
Returns the “default value” for a type. Read more
Source§impl From<&OperationInfo> for OperationSummary
impl From<&OperationInfo> for OperationSummary
Source§fn from(op: &OperationInfo) -> Self
fn from(op: &OperationInfo) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OperationInfo
impl RefUnwindSafe for OperationInfo
impl Send for OperationInfo
impl Sync for OperationInfo
impl Unpin for OperationInfo
impl UnsafeUnpin for OperationInfo
impl UnwindSafe for OperationInfo
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