pub struct ToolDigestEntry<'a> {
pub name: &'a str,
pub description: &'a str,
pub input_schema: &'a Value,
pub output_schema: Option<&'a Value>,
}Expand description
A borrowed view over one discovered tool, shaped for ToolDigest::compute without coupling
mcp-execution-core to mcp-execution-introspector’s ToolInfo.
§Examples
use mcp_execution_core::provenance::ToolDigestEntry;
use serde_json::json;
let schema = json!({"type": "object"});
let entry = ToolDigestEntry {
name: "create_issue",
description: "Creates a new issue",
input_schema: &schema,
output_schema: None,
};
assert_eq!(entry.name, "create_issue");Fields§
§name: &'a strThe tool’s MCP name (the call identifier).
description: &'a strThe tool’s description, as reported by the server.
input_schema: &'a ValueThe tool’s input JSON Schema.
output_schema: Option<&'a Value>The tool’s output JSON Schema, if the server reported one.
Trait Implementations§
Source§impl<'a> Clone for ToolDigestEntry<'a>
impl<'a> Clone for ToolDigestEntry<'a>
Source§fn clone(&self) -> ToolDigestEntry<'a>
fn clone(&self) -> ToolDigestEntry<'a>
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 moreimpl<'a> Copy for ToolDigestEntry<'a>
Auto Trait Implementations§
impl<'a> Freeze for ToolDigestEntry<'a>
impl<'a> RefUnwindSafe for ToolDigestEntry<'a>
impl<'a> Send for ToolDigestEntry<'a>
impl<'a> Sync for ToolDigestEntry<'a>
impl<'a> Unpin for ToolDigestEntry<'a>
impl<'a> UnsafeUnpin for ToolDigestEntry<'a>
impl<'a> UnwindSafe for ToolDigestEntry<'a>
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