pub struct McpListToolsTool {
pub name: String,
pub description: Option<String>,
pub input_schema: HashMap<String, Value>,
pub annotations: Option<HashMap<String, Value>>,
}
Expand description
A tool available on an MCP server.
Fields§
§name: String
The name of the tool.
description: Option<String>
The description of the tool.
input_schema: HashMap<String, Value>
The JSON schema describing the tool’s input.
annotations: Option<HashMap<String, Value>>
Additional annotations about the tool.
Implementations§
Source§impl McpListToolsTool
impl McpListToolsTool
Sourcepub fn builder() -> McpListToolsToolBuilder<((), (), (), ())>
pub fn builder() -> McpListToolsToolBuilder<((), (), (), ())>
Create a builder for building McpListToolsTool
.
On the builder, call .name(...)
, .description(...)
(optional), .input_schema(...)
, .annotations(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of McpListToolsTool
.
Trait Implementations§
Source§impl Clone for McpListToolsTool
impl Clone for McpListToolsTool
Source§fn clone(&self) -> McpListToolsTool
fn clone(&self) -> McpListToolsTool
Returns a duplicate of the value. Read more
1.0.0 · 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 McpListToolsTool
impl Debug for McpListToolsTool
Source§impl<'de> Deserialize<'de> for McpListToolsTool
impl<'de> Deserialize<'de> for McpListToolsTool
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 McpListToolsTool
impl PartialEq for McpListToolsTool
Source§impl Serialize for McpListToolsTool
impl Serialize for McpListToolsTool
impl StructuralPartialEq for McpListToolsTool
Auto Trait Implementations§
impl Freeze for McpListToolsTool
impl RefUnwindSafe for McpListToolsTool
impl Send for McpListToolsTool
impl Sync for McpListToolsTool
impl Unpin for McpListToolsTool
impl UnwindSafe for McpListToolsTool
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