pub struct Command {
pub index: u32,
pub command: String,
pub cwd: PathBuf,
pub started_at: f64,
pub ended_at: Option<f64>,
pub exit_code: Option<i32>,
pub duration_ms: Option<u64>,
}Expand description
A single command captured during a recording session.
Each command records the command text, working directory, timing information, and exit code. This matches the NDJSON schema from CONTEXT.md.
Fields§
§index: u32Command sequence number within the session (0-indexed)
command: StringThe actual command text that was executed
cwd: PathBufWorking directory when the command was executed
started_at: f64Unix timestamp with milliseconds when command started
ended_at: Option<f64>Unix timestamp with milliseconds when command ended (None if still running)
exit_code: Option<i32>Exit code of the command (None if still running)
duration_ms: Option<u64>Duration in milliseconds (calculated from timestamps)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Command
impl<'de> Deserialize<'de> for Command
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 Command
impl RefUnwindSafe for Command
impl Send for Command
impl Sync for Command
impl Unpin for Command
impl UnwindSafe for Command
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