Struct McpListedTool
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§
§impl Clone for McpListedTool
impl Clone for McpListedTool
§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 more§impl Debug for McpListedTool
impl Debug for McpListedTool
§impl<'de> Deserialize<'de> for McpListedTool
impl<'de> Deserialize<'de> for McpListedTool
§fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpListedTool, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<McpListedTool, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl PartialEq for McpListedTool
impl PartialEq for McpListedTool
§impl Serialize for McpListedTool
impl Serialize for McpListedTool
§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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