pub struct McpToolSpec {
pub name: String,
pub description: String,
pub input_schema: Value,
}Expand description
A tool spec as returned by the MCP server’s tools/list.
Fields§
§name: String§description: String§input_schema: ValueTrait Implementations§
Source§impl Clone for McpToolSpec
impl Clone for McpToolSpec
Source§fn clone(&self) -> McpToolSpec
fn clone(&self) -> McpToolSpec
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 McpToolSpec
impl Debug for McpToolSpec
Source§impl<'de> Deserialize<'de> for McpToolSpec
impl<'de> Deserialize<'de> for McpToolSpec
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
Auto Trait Implementations§
impl Freeze for McpToolSpec
impl RefUnwindSafe for McpToolSpec
impl Send for McpToolSpec
impl Sync for McpToolSpec
impl Unpin for McpToolSpec
impl UnsafeUnpin for McpToolSpec
impl UnwindSafe for McpToolSpec
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