pub struct WorktreeSafety {
pub tracked_dirty: bool,
pub staged_dirty: bool,
pub untracked_count: u64,
pub ignored_count: u64,
pub submodule_unknown: bool,
pub kind: WorktreeKind,
pub level: WorktreeSafetyLevel,
pub evidence: Vec<WorktreeEvidence>,
}Expand description
Portable worktree safety contract for cleaners and agent worktrees.
Fields§
§tracked_dirty: boolTracked files differ from HEAD in the index or worktree.
staged_dirty: boolIndex differs from HEAD.
untracked_count: u64Untracked, non-ignored paths.
ignored_count: u64Ignored untracked paths (directory roots counted once).
submodule_unknown: boolAt least one gitlink exists; submodule contents were not scanned.
kind: WorktreeKindWorktree layout.
level: WorktreeSafetyLevelCoarse bucket derived from the counts.
evidence: Vec<WorktreeEvidence>Bounded evidence samples.
Implementations§
Trait Implementations§
Source§impl Clone for WorktreeSafety
impl Clone for WorktreeSafety
Source§fn clone(&self) -> WorktreeSafety
fn clone(&self) -> WorktreeSafety
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 WorktreeSafety
impl Debug for WorktreeSafety
impl Eq for WorktreeSafety
Source§impl PartialEq for WorktreeSafety
impl PartialEq for WorktreeSafety
impl StructuralPartialEq for WorktreeSafety
Auto Trait Implementations§
impl Freeze for WorktreeSafety
impl RefUnwindSafe for WorktreeSafety
impl Send for WorktreeSafety
impl Sync for WorktreeSafety
impl Unpin for WorktreeSafety
impl UnsafeUnpin for WorktreeSafety
impl UnwindSafe for WorktreeSafety
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