pub struct WorktreeOutcome {
pub verb: String,
pub argv: Vec<String>,
pub exit_code: Option<i32>,
pub duration: Duration,
pub error: Option<String>,
pub context: BTreeMap<String, String>,
}Expand description
The outcome of one wrapped git worktree subprocess, recorded by the
crate::cli::git worktree subcommands after the process exits.
Fields§
§verb: StringThe verb (add/remove/list/move/prune/repair); the record’s
command becomes ["git", "worktree", verb] so --command/command:
queries work.
argv: Vec<String>Full argv passed to git (without the binary path). Scrubbed before
write.
exit_code: Option<i32>Process exit code; None when the process could not be spawned.
duration: DurationWall time of the subprocess (metadata enrichment excluded).
error: Option<String>Spawn/collection error, when the invocation did not complete.
context: BTreeMap<String, String>Recovery-relevant per-verb fields (path/branch/commit/
had_uncommitted/used_force/…), written to the record’s context.
Trait Implementations§
Source§impl Clone for WorktreeOutcome
impl Clone for WorktreeOutcome
Source§fn clone(&self) -> WorktreeOutcome
fn clone(&self) -> WorktreeOutcome
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 moreAuto Trait Implementations§
impl Freeze for WorktreeOutcome
impl RefUnwindSafe for WorktreeOutcome
impl Send for WorktreeOutcome
impl Sync for WorktreeOutcome
impl Unpin for WorktreeOutcome
impl UnsafeUnpin for WorktreeOutcome
impl UnwindSafe for WorktreeOutcome
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