pub struct McpListedTool {
pub name: String,
pub description: Option<String>,
pub input_schema: Value,
pub annotations: Option<Value>,
}Expand description
A tool discovered on an MCP server.
Fields§
§name: StringTool name as exposed by the server.
description: Option<String>Human-readable tool description, when supplied.
input_schema: ValueJSON Schema describing accepted arguments.
annotations: Option<Value>Additional tool metadata reported by the server.
Trait Implementations§
Source§impl Clone for McpListedTool
impl Clone for McpListedTool
Source§fn clone(&self) -> McpListedTool
fn clone(&self) -> McpListedTool
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 McpListedTool
impl Debug for McpListedTool
Source§impl<'de> Deserialize<'de> for McpListedTool
impl<'de> Deserialize<'de> for McpListedTool
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for McpListedTool
impl PartialEq for McpListedTool
Source§impl Serialize for McpListedTool
impl Serialize for McpListedTool
impl StructuralPartialEq for McpListedTool
Auto Trait Implementations§
impl Freeze for McpListedTool
impl RefUnwindSafe for McpListedTool
impl Send for McpListedTool
impl Sync for McpListedTool
impl Unpin for McpListedTool
impl UnsafeUnpin for McpListedTool
impl UnwindSafe for McpListedTool
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