pub struct ExtractedOperation {
pub method: String,
pub path: String,
pub operation_id: Option<String>,
pub summary: Option<String>,
pub description: Option<String>,
pub parameters: Vec<ExtractedParameter>,
pub request_body_schema: Option<Value>,
pub mcp_type: McpType,
}Expand description
An operation extracted from an OpenAPI spec.
Fields§
§method: StringHTTP method (GET, POST, etc.)
path: StringPath template (e.g., “/users/{id}”)
operation_id: Option<String>Operation ID (if specified)
summary: Option<String>Summary/description
description: Option<String>Operation description
parameters: Vec<ExtractedParameter>Parameters
request_body_schema: Option<Value>Request body schema (if any)
mcp_type: McpTypeWhat MCP type this maps to
Trait Implementations§
Source§impl Clone for ExtractedOperation
impl Clone for ExtractedOperation
Source§fn clone(&self) -> ExtractedOperation
fn clone(&self) -> ExtractedOperation
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 moreAuto Trait Implementations§
impl Freeze for ExtractedOperation
impl RefUnwindSafe for ExtractedOperation
impl Send for ExtractedOperation
impl Sync for ExtractedOperation
impl Unpin for ExtractedOperation
impl UnsafeUnpin for ExtractedOperation
impl UnwindSafe for ExtractedOperation
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