Skip to main content

RunRecord

Struct RunRecord 

Source
pub struct RunRecord {
Show 34 fields pub id: String, pub session_id: String, pub created_at: String, pub repo_root: String, pub cwd: String, pub shim_name: String, pub argv_json: String, pub command_original: String, pub command_family: String, pub command_key: String, pub classification: String, pub exit_code: i64, pub duration_ms: i64, pub overhead_ms: i64, pub stdout_path: Option<String>, pub stderr_path: Option<String>, pub normalized_path: Option<String>, pub raw_stdout_bytes: i64, pub raw_stderr_bytes: i64, pub raw_total_bytes: i64, pub emitted_bytes: i64, pub estimated_raw_tokens: i64, pub estimated_emitted_tokens: i64, pub estimated_saved_tokens: i64, pub normalized_hash: Option<String>, pub stdout_hash: Option<String>, pub stderr_hash: Option<String>, pub git_head: Option<String>, pub git_worktree_hash: Option<String>, pub comparison_base_run_id: Option<String>, pub comparison_result: String, pub summary: Option<String>, pub full_output_requested: i64, pub internal_error: Option<String>,
}
Expand description

One captured command run. Mirrors the runs table (spec §15.1) plus overhead_ms. classification/comparison_result are stored as strings.

Fields§

§id: String§session_id: String§created_at: String§repo_root: String§cwd: String§shim_name: String§argv_json: String§command_original: String§command_family: String§command_key: String§classification: String§exit_code: i64§duration_ms: i64§overhead_ms: i64§stdout_path: Option<String>§stderr_path: Option<String>§normalized_path: Option<String>§raw_stdout_bytes: i64§raw_stderr_bytes: i64§raw_total_bytes: i64§emitted_bytes: i64§estimated_raw_tokens: i64§estimated_emitted_tokens: i64§estimated_saved_tokens: i64§normalized_hash: Option<String>§stdout_hash: Option<String>§stderr_hash: Option<String>§git_head: Option<String>§git_worktree_hash: Option<String>§comparison_base_run_id: Option<String>§comparison_result: String§summary: Option<String>§full_output_requested: i64§internal_error: Option<String>

Implementations§

Trait Implementations§

Source§

impl Clone for RunRecord

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RunRecord

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.