pub struct ToolMetadata {
pub created_at: SystemTime,
pub last_called: Option<SystemTime>,
pub call_count: u64,
pub avg_execution_time: Duration,
pub health_status: ToolHealthStatus,
pub tags: Vec<String>,
}
Expand description
Tool metadata for tracking and optimization
Fields§
§created_at: SystemTime
Tool creation time
last_called: Option<SystemTime>
Last call time
call_count: u64
Total number of calls
avg_execution_time: Duration
Average execution time
health_status: ToolHealthStatus
Tool health status
Tags for categorization
Trait Implementations§
Source§impl Clone for ToolMetadata
impl Clone for ToolMetadata
Source§fn clone(&self) -> ToolMetadata
fn clone(&self) -> ToolMetadata
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for ToolMetadata
impl RefUnwindSafe for ToolMetadata
impl Send for ToolMetadata
impl Sync for ToolMetadata
impl Unpin for ToolMetadata
impl UnwindSafe for ToolMetadata
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