pub struct McpStructuredContent(pub Value);Available on non-
target_family=wasm only.Expand description
The structuredContent an MCP tool answered with, on the context’s
result map for result hooks.
Tuple Fields§
§0: ValueTrait Implementations§
Source§impl Clone for McpStructuredContent
impl Clone for McpStructuredContent
Source§impl ContextValue for McpStructuredContent
impl ContextValue for McpStructuredContent
Source§impl Debug for McpStructuredContent
impl Debug for McpStructuredContent
Source§impl<'de> Deserialize<'de> for McpStructuredContent
impl<'de> Deserialize<'de> for McpStructuredContent
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 McpStructuredContent
impl PartialEq for McpStructuredContent
Source§impl Serialize for McpStructuredContent
impl Serialize for McpStructuredContent
impl StructuralPartialEq for McpStructuredContent
Auto Trait Implementations§
impl Freeze for McpStructuredContent
impl RefUnwindSafe for McpStructuredContent
impl Send for McpStructuredContent
impl Sync for McpStructuredContent
impl Unpin for McpStructuredContent
impl UnsafeUnpin for McpStructuredContent
impl UnwindSafe for McpStructuredContent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.