pub struct OperationInfo {
pub operation_id: String,
pub method: String,
pub path: String,
pub request_body: Option<RequestBodyContent>,
pub response_schemas: BTreeMap<String, String>,
pub parameters: Vec<ParameterInfo>,
pub supports_streaming: bool,
pub stream_parameter: Option<String>,
}Expand description
Information about an OpenAPI operation
Fields§
§operation_id: StringOperation ID
method: StringHTTP method (GET, POST, etc.)
path: StringPath template
request_body: Option<RequestBodyContent>Request body content type and schema (if any)
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
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 · 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
Auto Trait Implementations§
impl Freeze for OperationInfo
impl RefUnwindSafe for OperationInfo
impl Send for OperationInfo
impl Sync for OperationInfo
impl Unpin 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