pub struct McpListTools {
pub id: String,
pub server_label: String,
pub tools: Vec<McpListToolsTool>,
pub error: Option<String>,
}
Expand description
A list of tools available on an MCP server.
Fields§
§id: String
The unique ID of the list.
server_label: String
The label of the MCP server.
tools: Vec<McpListToolsTool>
The tools available on the server.
error: Option<String>
Error message if the server could not list tools.
Implementations§
Source§impl McpListTools
impl McpListTools
Trait Implementations§
Source§impl Clone for McpListTools
impl Clone for McpListTools
Source§fn clone(&self) -> McpListTools
fn clone(&self) -> McpListTools
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 McpListTools
impl Debug for McpListTools
Source§impl<'de> Deserialize<'de> for McpListTools
impl<'de> Deserialize<'de> for McpListTools
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 McpListTools
impl PartialEq for McpListTools
Source§impl Serialize for McpListTools
impl Serialize for McpListTools
impl StructuralPartialEq for McpListTools
Auto Trait Implementations§
impl Freeze for McpListTools
impl RefUnwindSafe for McpListTools
impl Send for McpListTools
impl Sync for McpListTools
impl Unpin for McpListTools
impl UnwindSafe for McpListTools
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