pub struct ToolResultMetadata {
pub tool_id: String,
pub version: Option<String>,
pub binding: Option<BindingProtocol>,
pub latency_ms: Option<u64>,
pub timestamp: Option<String>,
pub request_id: Option<String>,
}Expand description
Metadata attached to a successful tool result.
Only tool_id is required — servers always echo it. All other fields are
server-populated and optional: clients must not synthesize them, because a
fabricated timestamp/request_id would silently masquerade as server
truth. timestamp and request_id are kept as opaque strings so this crate
has no dependency on a specific datetime or ULID implementation; callers
that need typed access can parse with their preferred library.
Fields§
§tool_id: String§version: Option<String>§binding: Option<BindingProtocol>§latency_ms: Option<u64>§timestamp: Option<String>ISO-8601 / RFC-3339 timestamp, server-populated.
request_id: Option<String>Opaque request identifier (ULID, UUID, or whatever the server emits).
Implementations§
Trait Implementations§
Source§impl Clone for ToolResultMetadata
impl Clone for ToolResultMetadata
Source§fn clone(&self) -> ToolResultMetadata
fn clone(&self) -> ToolResultMetadata
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 ToolResultMetadata
impl Debug for ToolResultMetadata
Source§impl<'de> Deserialize<'de> for ToolResultMetadata
impl<'de> Deserialize<'de> for ToolResultMetadata
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
Auto Trait Implementations§
impl Freeze for ToolResultMetadata
impl RefUnwindSafe for ToolResultMetadata
impl Send for ToolResultMetadata
impl Sync for ToolResultMetadata
impl Unpin for ToolResultMetadata
impl UnsafeUnpin for ToolResultMetadata
impl UnwindSafe for ToolResultMetadata
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