pub struct McpToolMetadata { /* private fields */ }Expand description
Runtime-neutral metadata for an MCP tool.
Implementations§
Source§impl McpToolMetadata
impl McpToolMetadata
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
A description of what the tool does.
Sourcepub fn input_schema(&self) -> &Arc<McpToolSchema>
pub fn input_schema(&self) -> &Arc<McpToolSchema>
JSON Schema object defining the expected parameters for the tool.
Sourcepub fn output_schema(&self) -> Option<&Arc<McpToolSchema>>
pub fn output_schema(&self) -> Option<&Arc<McpToolSchema>>
Optional JSON Schema object defining the structure of the tool’s output.
Trait Implementations§
Source§impl Clone for McpToolMetadata
impl Clone for McpToolMetadata
Source§fn clone(&self) -> McpToolMetadata
fn clone(&self) -> McpToolMetadata
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 McpToolMetadata
impl RefUnwindSafe for McpToolMetadata
impl Send for McpToolMetadata
impl Sync for McpToolMetadata
impl Unpin for McpToolMetadata
impl UnsafeUnpin for McpToolMetadata
impl UnwindSafe for McpToolMetadata
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