pub struct PreMcpToolCallOutput {
pub meta_to_use: Option<Value>,
}Expand description
Output for the preMcpToolCall hook.
meta_to_use has tri-state semantics:
None: field is absent in JSON, meaning preserve existing_metaSome(Value::Null): serialized as JSONnull, meaning omit_metaSome(Value::Object(...)): serialized as JSON object, meaning replace_meta
Fields§
§meta_to_use: Option<Value>Hook-controlled metadata for the outgoing MCP request.
Trait Implementations§
Source§impl Clone for PreMcpToolCallOutput
impl Clone for PreMcpToolCallOutput
Source§fn clone(&self) -> PreMcpToolCallOutput
fn clone(&self) -> PreMcpToolCallOutput
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 PreMcpToolCallOutput
impl Debug for PreMcpToolCallOutput
Source§impl Default for PreMcpToolCallOutput
impl Default for PreMcpToolCallOutput
Source§fn default() -> PreMcpToolCallOutput
fn default() -> PreMcpToolCallOutput
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for PreMcpToolCallOutput
impl RefUnwindSafe for PreMcpToolCallOutput
impl Send for PreMcpToolCallOutput
impl Sync for PreMcpToolCallOutput
impl Unpin for PreMcpToolCallOutput
impl UnsafeUnpin for PreMcpToolCallOutput
impl UnwindSafe for PreMcpToolCallOutput
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