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,
pub security: Vec<HashMap<String, Vec<String>>>,
pub response_schema: Option<Value>,
}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
security: Vec<HashMap<String, Vec<String>>>Effective security requirements: a list of alternative
SecurityRequirement objects. Each
entry maps a scheme name from components.securitySchemes to the
scopes that must be present. Satisfy any one alternative. Operation-level
security overrides the spec-level security; an explicit empty list
(security: []) on an operation disables auth.
response_schema: Option<Value>JSON Schema of the operation’s primary success response (first 2xx
application/json response, with $refs inlined). Surfaces in the
generated MCP Tool::output_schema for clients that consume MCP
2025-11-25’s outputSchema. None if the operation has no JSON
response or only default / non-2xx responses.
Trait Implementations§
Source§impl Clone for ExtractedOperation
impl Clone for ExtractedOperation
Source§fn clone(&self) -> ExtractedOperation
fn clone(&self) -> ExtractedOperation
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more