pub struct MCPTool {
pub name: Option<String>,
pub description: Option<String>,
pub annotations: Option<Value>,
pub input_schema: Option<MCPInputSchema>,
}Fields§
§name: Option<String>Tool name
description: Option<String>Tool description
annotations: Option<Value>Tool annotations
input_schema: Option<MCPInputSchema>Tool input schema
Implementations§
Source§impl MCPTool
impl MCPTool
pub fn name(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
pub fn annotations(&self) -> Option<&Value>
pub fn input_schema(&self) -> Option<&MCPInputSchema>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for MCPTool
impl<'de> Deserialize<'de> for MCPTool
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<'v_a> ValidateArgs<'v_a> for MCPTool
impl<'v_a> ValidateArgs<'v_a> for MCPTool
Auto Trait Implementations§
impl Freeze for MCPTool
impl RefUnwindSafe for MCPTool
impl Send for MCPTool
impl Sync for MCPTool
impl Unpin for MCPTool
impl UnsafeUnpin for MCPTool
impl UnwindSafe for MCPTool
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