pub struct ScanOutcome {
pub files: Vec<FileHunks>,
pub scanner_ok: bool,
pub untracked_suppressed: usize,
}Expand description
Outcome of a single scan invocation. files carries whatever
was parsed; scanner_ok is false when at least one of the
underlying subprocess calls hit Failed or Oversize - the
file list may be partial or empty, and a downstream renderer
should distinguish that case from a genuine clean tree so the
user knows whether to retry vs. accept “no changes.”
untracked_suppressed carries the count of untracked files
that DIDN’T make it into files because the working tree had
more than MAX_UNTRACKED_FILES untracked entries. The renderer
surfaces this so the user knows the rail is incomplete; without
it, a fresh-repo state with 5+ untracked files looks identical
to a tree with zero.
Fields§
§files: Vec<FileHunks>§scanner_ok: bool§untracked_suppressed: usizeTrait Implementations§
Source§impl Clone for ScanOutcome
impl Clone for ScanOutcome
Source§impl Debug for ScanOutcome
impl Debug for ScanOutcome
impl Eq for ScanOutcome
Source§impl PartialEq for ScanOutcome
impl PartialEq for ScanOutcome
impl StructuralPartialEq for ScanOutcome
Auto Trait Implementations§
impl Freeze for ScanOutcome
impl RefUnwindSafe for ScanOutcome
impl Send for ScanOutcome
impl Sync for ScanOutcome
impl Unpin for ScanOutcome
impl UnsafeUnpin for ScanOutcome
impl UnwindSafe for ScanOutcome
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.