pub struct ApiOperation {
pub tool_name: String,
pub method: String,
pub path: String,
pub description: String,
pub parameters: Vec<ApiParam>,
pub request_body_schema: Option<Value>,
pub input_schema: Value,
pub hint: Option<String>,
}Expand description
A parsed API operation ready for MCP tool generation.
Each operation maps to one MCP tool. The input_schema field holds
the merged JSON Schema for the tool’s input, built by the schema module
from parameters and request body.
Fields§
§tool_name: String§method: String§path: String§description: String§parameters: Vec<ApiParam>§request_body_schema: Option<Value>§input_schema: Value§hint: Option<String>Implementations§
Source§impl ApiOperation
impl ApiOperation
Trait Implementations§
Source§impl Clone for ApiOperation
impl Clone for ApiOperation
Source§fn clone(&self) -> ApiOperation
fn clone(&self) -> ApiOperation
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 ApiOperation
impl Debug for ApiOperation
Source§impl PartialEq for ApiOperation
impl PartialEq for ApiOperation
Source§fn eq(&self, other: &ApiOperation) -> bool
fn eq(&self, other: &ApiOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ApiOperation
Auto Trait Implementations§
impl Freeze for ApiOperation
impl RefUnwindSafe for ApiOperation
impl Send for ApiOperation
impl Sync for ApiOperation
impl Unpin for ApiOperation
impl UnsafeUnpin for ApiOperation
impl UnwindSafe for ApiOperation
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