pub struct ScanReport {
pub roots: Vec<PathBuf>,
pub candidates: Vec<Candidate>,
pub review_candidates: Vec<ReviewCandidate>,
pub learning_observations: Vec<LearningObservation>,
pub warnings: Vec<String>,
pub total_bytes: u64,
pub review_total_bytes: u64,
pub observed_total_bytes: u64,
pub protect_git_tracked: bool,
}Expand description
Result of scanning one or more roots.
Fields§
§roots: Vec<PathBuf>Roots traversed by the scanner.
candidates: Vec<Candidate>Rebuildable directories found.
review_candidates: Vec<ReviewCandidate>Cache-like directories that require review and cannot be cleaned yet.
learning_observations: Vec<LearningObservation>Local measurements used for growth history, including active artifacts filtered from cleanup.
warnings: Vec<String>Non-fatal traversal or metadata errors.
total_bytes: u64Total estimated allocated bytes for all candidates.
review_total_bytes: u64Total allocated bytes represented by review-only observations.
observed_total_bytes: u64Total allocated bytes represented by Learning Mode measurements.
protect_git_tracked: boolWhether cleanup must repeat the Git tracked-file guard.
Trait Implementations§
Source§impl Clone for ScanReport
impl Clone for ScanReport
Source§fn clone(&self) -> ScanReport
fn clone(&self) -> ScanReport
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 ScanReport
impl Debug for ScanReport
Source§impl<'de> Deserialize<'de> for ScanReport
impl<'de> Deserialize<'de> for ScanReport
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 ScanReport
impl RefUnwindSafe for ScanReport
impl Send for ScanReport
impl Sync for ScanReport
impl Unpin for ScanReport
impl UnsafeUnpin for ScanReport
impl UnwindSafe for ScanReport
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<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more