pub struct ToolRunMetadata {
pub detail: ToolMetadata,
pub line_count: Option<usize>,
pub byte_count: Option<usize>,
pub result_count: Option<usize>,
pub duration_secs: Option<f64>,
pub process: Option<ManagedProcess>,
pub display_diff: Option<String>,
pub diff_truncated: bool,
pub artifacts: Vec<ToolArtifact>,
}Expand description
Structured metadata extracted from a completed tool run.
Fields§
§detail: ToolMetadata§line_count: Option<usize>§byte_count: Option<usize>§result_count: Option<usize>§duration_secs: Option<f64>§process: Option<ManagedProcess>§display_diff: Option<String>User-facing display diff for file mutations. This is captured at tool execution time so whole-file writes can compare against the pre-write contents even after the file has been overwritten.
diff_truncated: bool§artifacts: Vec<ToolArtifact>Trait Implementations§
Source§impl Clone for ToolRunMetadata
impl Clone for ToolRunMetadata
Source§fn clone(&self) -> ToolRunMetadata
fn clone(&self) -> ToolRunMetadata
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 ToolRunMetadata
impl Debug for ToolRunMetadata
Source§impl Default for ToolRunMetadata
impl Default for ToolRunMetadata
Source§fn default() -> ToolRunMetadata
fn default() -> ToolRunMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ToolRunMetadata
impl<'de> Deserialize<'de> for ToolRunMetadata
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
Source§impl PartialEq for ToolRunMetadata
impl PartialEq for ToolRunMetadata
Source§fn eq(&self, other: &ToolRunMetadata) -> bool
fn eq(&self, other: &ToolRunMetadata) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ToolRunMetadata
impl Serialize for ToolRunMetadata
impl StructuralPartialEq for ToolRunMetadata
Auto Trait Implementations§
impl Freeze for ToolRunMetadata
impl RefUnwindSafe for ToolRunMetadata
impl Send for ToolRunMetadata
impl Sync for ToolRunMetadata
impl Unpin for ToolRunMetadata
impl UnsafeUnpin for ToolRunMetadata
impl UnwindSafe for ToolRunMetadata
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more