pub struct McpMeta(pub Meta);Available on non-
target_family=wasm only.Expand description
The request _meta a caller places in the ToolContext for an MCP
tool, forwarded as the call’s _meta (SEP-1319). A newtype because the
context stores values under declared keys and rmcp::model::Meta is
not this crate’s to implement ContextValue for.
Tuple Fields§
§0: MetaTrait Implementations§
Source§impl ContextValue for McpMeta
impl ContextValue for McpMeta
Source§impl<'de> Deserialize<'de> for McpMeta
impl<'de> Deserialize<'de> for McpMeta
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
impl StructuralPartialEq for McpMeta
Auto Trait Implementations§
impl Freeze for McpMeta
impl RefUnwindSafe for McpMeta
impl Send for McpMeta
impl Sync for McpMeta
impl Unpin for McpMeta
impl UnsafeUnpin for McpMeta
impl UnwindSafe for McpMeta
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.