pub struct McpToolCallResult {
pub content: Vec<McpContentItem>,
pub is_error: bool,
}Expand description
Tool call result containing execution output.
Returned by the server after tool execution, containing content items (text, images, or resources) and an error flag.
§Fields
content- List of content items returned by the toolis_error- Whether the tool execution failed
§Note
Even when is_error is true, the content may contain error messages
or diagnostic information.
Fields§
§content: Vec<McpContentItem>Content items returned by the tool
is_error: boolWhether the tool execution encountered an error
Trait Implementations§
Source§impl Clone for McpToolCallResult
impl Clone for McpToolCallResult
Source§fn clone(&self) -> McpToolCallResult
fn clone(&self) -> McpToolCallResult
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 McpToolCallResult
impl Debug for McpToolCallResult
Source§impl<'de> Deserialize<'de> for McpToolCallResult
impl<'de> Deserialize<'de> for McpToolCallResult
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 McpToolCallResult
impl RefUnwindSafe for McpToolCallResult
impl Send for McpToolCallResult
impl Sync for McpToolCallResult
impl Unpin for McpToolCallResult
impl UnsafeUnpin for McpToolCallResult
impl UnwindSafe for McpToolCallResult
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