pub struct McpToolDef {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
A tool exposed by a remote MCP server.
Fields§
§name: StringTool name (unqualified — the remote server’s own name for it).
description: StringHuman description.
input_schema: ValueJSON Schema for the tool’s input.
Trait Implementations§
Source§impl Clone for McpToolDef
impl Clone for McpToolDef
Source§fn clone(&self) -> McpToolDef
fn clone(&self) -> McpToolDef
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 moreAuto Trait Implementations§
impl Freeze for McpToolDef
impl RefUnwindSafe for McpToolDef
impl Send for McpToolDef
impl Sync for McpToolDef
impl Unpin for McpToolDef
impl UnsafeUnpin for McpToolDef
impl UnwindSafe for McpToolDef
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