pub struct FileAnalysis {
pub path: PathBuf,
pub call_count: usize,
pub has_exposure: bool,
pub risk_level: RiskLevel,
pub risk_score: usize,
pub exposures: Vec<ExposureDetail>,
pub exposure_lines: Vec<usize>,
pub occurrence_lines: Vec<usize>,
}Expand description
Analysis report for a single file
Fields§
§path: PathBufPath to the file
call_count: usizeNumber of token occurrences in this file
has_exposure: boolWhether the token appears to be exposed (print, log, etc.)
risk_level: RiskLevelRisk level based on file type
risk_score: usizeComputed risk score (call_count * risk_multiplier)
exposures: Vec<ExposureDetail>Detailed exposure information
exposure_lines: Vec<usize>Line numbers where exposure was detected (legacy compatibility)
occurrence_lines: Vec<usize>Line numbers of all occurrences
Trait Implementations§
Source§impl Clone for FileAnalysis
impl Clone for FileAnalysis
Source§fn clone(&self) -> FileAnalysis
fn clone(&self) -> FileAnalysis
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 FileAnalysis
impl RefUnwindSafe for FileAnalysis
impl Send for FileAnalysis
impl Sync for FileAnalysis
impl Unpin for FileAnalysis
impl UnwindSafe for FileAnalysis
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