Skip to main content

ScanReport

Struct ScanReport 

Source
pub struct ScanReport {
    pub root: PathBuf,
    pub files: Vec<ScannedFile>,
    pub skipped: Vec<SkippedEntry>,
    pub warnings: Vec<ScanWarning>,
    pub ignore_sources: Vec<IgnoreSourceEvidence>,
    pub revision: String,
    pub complete: bool,
    pub termination: Option<ScanTermination>,
    pub portable: bool,
    pub cache: ScanCacheStats,
    /* private fields */
}

Fields§

§root: PathBuf§files: Vec<ScannedFile>§skipped: Vec<SkippedEntry>§warnings: Vec<ScanWarning>§ignore_sources: Vec<IgnoreSourceEvidence>

Every ignore input that participated in path selection.

§revision: String§complete: bool

False when local I/O or ignore-rule errors made evidence partial.

§termination: Option<ScanTermination>

Why a bounded scan stopped before exhausting the tree.

§portable: bool

False when selection depended on host-level configuration.

§cache: ScanCacheStats

Evidence of content work reused from an older persistent report.

Implementations§

Source§

impl ScanReport

Source

pub fn to_cache(&self) -> ScanCache

Extracts the compact, versioned evidence needed for a later scan.

Source§

impl ScanReport

Source

pub fn to_portable(&self) -> PortableScanReport

Returns path-safe evidence for IPC, logs, caches, and external tools.

Source§

impl ScanReport

Source

pub fn delta_from(&self, previous: &Self) -> ScanDelta

Computes the deterministic changed-file set from an older report.

Source§

impl ScanReport

Source

pub fn content_provider( &self, ) -> Result<SnapshotContentProvider<'_>, SnapshotReadError>

Creates a provider after validating report ordering and path scope.

§Errors

Returns SnapshotReadError::InvalidReport for a malformed, path-escaping, duplicate, or unverifiable report entry.

Source§

impl ScanReport

Source

pub fn summary(&self) -> ScanSummary

Aggregates this report without exposing repository paths.

Trait Implementations§

Source§

impl Clone for ScanReport

Source§

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)

Performs copy-assignment from source. Read more
Source§

impl Debug for ScanReport

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for ScanReport

Source§

impl From<&ScanReport> for PortableScanReport

Source§

fn from(report: &ScanReport) -> Self

Converts to this type from the input type.
Source§

impl PartialEq for ScanReport

Source§

fn eq(&self, other: &ScanReport) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ScanReport

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.