pub struct ScanResult {
pub total_files: usize,
pub files_by_language: HashMap<Language, Vec<DiscoveredFile>>,
pub duration_ms: u64,
pub errors: Vec<Error>,
}
Expand description
Repository scan result
Fields§
§total_files: usize
Total files discovered
files_by_language: HashMap<Language, Vec<DiscoveredFile>>
Files by language
duration_ms: u64
Scan duration in milliseconds
errors: Vec<Error>
Errors encountered during scan
Implementations§
Source§impl ScanResult
impl ScanResult
Sourcepub fn file_count(&self) -> usize
pub fn file_count(&self) -> usize
Get total number of files discovered
Sourcepub fn files_for_language(&self, language: Language) -> Vec<&DiscoveredFile>
pub fn files_for_language(&self, language: Language) -> Vec<&DiscoveredFile>
Get files for a specific language
Sourcepub fn all_files(&self) -> Vec<&DiscoveredFile>
pub fn all_files(&self) -> Vec<&DiscoveredFile>
Get all discovered files
Trait Implementations§
Source§impl Debug for ScanResult
impl Debug for ScanResult
Auto Trait Implementations§
impl Freeze for ScanResult
impl !RefUnwindSafe for ScanResult
impl Send for ScanResult
impl Sync for ScanResult
impl Unpin for ScanResult
impl !UnwindSafe for ScanResult
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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