pub struct OpenApiTool {
pub name: String,
pub description: String,
pub input_schema: String,
pub output_schema: Option<String>,
pub annotations: ToolAnnotations,
pub method: String,
pub path: String,
pub parameters: Vec<(String, Location)>,
pub has_body: bool,
}Expand description
One operation as an MCP tool.
Fields§
§name: String§description: String§input_schema: StringThe tool’s inputSchema (JSON text).
output_schema: Option<String>The 2xx JSON response’s schema when it is an object (outputSchema).
annotations: ToolAnnotations§method: String§path: String/invoices/{id}.
parameters: Vec<(String, Location)>§has_body: boolThe operation takes a JSON body (the body argument).
Implementations§
Source§impl OpenApiTool
impl OpenApiTool
Trait Implementations§
Source§impl Clone for OpenApiTool
impl Clone for OpenApiTool
Auto Trait Implementations§
impl Freeze for OpenApiTool
impl RefUnwindSafe for OpenApiTool
impl Send for OpenApiTool
impl Sync for OpenApiTool
impl Unpin for OpenApiTool
impl UnsafeUnpin for OpenApiTool
impl UnwindSafe for OpenApiTool
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