pub struct AnalysisReport {
pub token_name: String,
pub search_dir: PathBuf,
pub total_calls: usize,
pub exposure_count: usize,
pub total_risk_score: usize,
pub critical_files: usize,
pub files: Vec<FileAnalysis>,
pub duration: Duration,
pub files_scanned: usize,
pub truncated: bool,
pub errors: Vec<String>,
}Expand description
Complete analysis report
Fields§
§token_name: StringToken that was analyzed
search_dir: PathBufDirectory that was scanned
total_calls: usizeTotal number of calls found
exposure_count: usizeNumber of files with exposure warnings
total_risk_score: usizeTotal risk score across all files
critical_files: usizeNumber of critical-risk files found
files: Vec<FileAnalysis>Per-file analysis results
duration: DurationTime taken for the analysis
files_scanned: usizeNumber of files scanned
truncated: boolWhether the analysis was truncated due to limits
errors: Vec<String>Error messages encountered during scan
Implementations§
Source§impl AnalysisReport
impl AnalysisReport
Sourcepub fn files_sorted(&self) -> Vec<&FileAnalysis>
pub fn files_sorted(&self) -> Vec<&FileAnalysis>
Returns files sorted by risk score (highest first), then exposure, then call count
Sourcepub fn exposed_files(&self) -> Vec<&FileAnalysis>
pub fn exposed_files(&self) -> Vec<&FileAnalysis>
Returns only files with exposure warnings
Sourcepub fn high_risk_files(&self) -> Vec<&FileAnalysis>
pub fn high_risk_files(&self) -> Vec<&FileAnalysis>
Returns files at critical or high risk level
Sourcepub fn has_security_issues(&self) -> bool
pub fn has_security_issues(&self) -> bool
Check if any exposure was found
Sourcepub fn has_critical_issues(&self) -> bool
pub fn has_critical_issues(&self) -> bool
Check if critical issues were found
Trait Implementations§
Source§impl Clone for AnalysisReport
impl Clone for AnalysisReport
Source§fn clone(&self) -> AnalysisReport
fn clone(&self) -> AnalysisReport
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for AnalysisReport
impl RefUnwindSafe for AnalysisReport
impl Send for AnalysisReport
impl Sync for AnalysisReport
impl Unpin for AnalysisReport
impl UnwindSafe for AnalysisReport
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,
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