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§impl Debug for PreMcpToolCallOutput
impl Debug for PreMcpToolCallOutput
Source§impl Default for PreMcpToolCallOutput
impl Default for PreMcpToolCallOutput
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