pub struct CallToolResult {
pub content: Vec<ToolContent>,
pub structured_content: Option<Value>,
pub is_error: Option<bool>,
}Expand description
MCP tools/call response
Fields§
§content: Vec<ToolContent>A list of content objects that represent the unstructured result of the tool call.
structured_content: Option<Value>An optional JSON object that represents the structured result of the tool call.
is_error: Option<bool>Whether the tool call ended in an error.
Trait Implementations§
Source§impl Clone for CallToolResult
impl Clone for CallToolResult
Source§fn clone(&self) -> CallToolResult
fn clone(&self) -> CallToolResult
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 CallToolResult
impl Debug for CallToolResult
Source§impl<'de> Deserialize<'de> for CallToolResult
impl<'de> Deserialize<'de> for CallToolResult
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<T: Serialize> From<Result<T, String>> for CallToolResult
Allows ToolResult<T> to convert to CallToolResult via .into().
impl<T: Serialize> From<Result<T, String>> for CallToolResult
Allows ToolResult<T> to convert to CallToolResult via .into().
Source§fn from(result: ToolResult<T>) -> Self
fn from(result: ToolResult<T>) -> Self
Converts to this type from the input type.
Source§impl IntoCallToolResult for CallToolResult
impl IntoCallToolResult for CallToolResult
Source§fn into_call_result(self) -> CallToolResult
fn into_call_result(self) -> CallToolResult
Convert to a
CallToolResult.Auto Trait Implementations§
impl Freeze for CallToolResult
impl RefUnwindSafe for CallToolResult
impl Send for CallToolResult
impl Sync for CallToolResult
impl Unpin for CallToolResult
impl UnwindSafe for CallToolResult
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