pub struct FileAnalysis {
pub fingerprint: Fingerprint,
pub bytes: u64,
pub detection: ContentDetection,
pub lines: AnalyzerOutcome<BasicMetrics>,
pub code: Option<AnalyzerOutcome<CodeMetrics>>,
pub words: Option<AnalyzerOutcome<WordMetrics>>,
pub error: Option<String>,
}Expand description
Sparse analysis record for one regular file.
Fields§
§fingerprint: FingerprintMetadata fingerprint this result describes.
bytes: u64Apparent bytes represented by the record.
detection: ContentDetectionBounded content evidence, kept separate from name-based grouping.
lines: AnalyzerOutcome<BasicMetrics>Shared physical-line and raw-word outcome.
code: Option<AnalyzerOutcome<CodeMetrics>>Code outcome when the request included the code unit.
words: Option<AnalyzerOutcome<WordMetrics>>Word outcome when the request included the word unit.
error: Option<String>Optional path-specific failure detail.
Implementations§
Source§impl FileAnalysis
impl FileAnalysis
Sourcepub const fn matches_profile(&self, profile: AnalysisSet) -> bool
pub const fn matches_profile(&self, profile: AnalysisSet) -> bool
Whether optional unit slots exactly match the tier’s requested analyzer set.
Sourcepub const fn operational_failure(&self) -> Option<CoverageReason>
pub const fn operational_failure(&self) -> Option<CoverageReason>
File-level operational failure, counted once even though it affects every unit.
Sourcepub const fn is_reusable(&self) -> bool
pub const fn is_reusable(&self) -> bool
Whether every retained requested unit is safe to reuse.
Trait Implementations§
Source§impl Clone for FileAnalysis
impl Clone for FileAnalysis
Source§impl Debug for FileAnalysis
impl Debug for FileAnalysis
impl Eq for FileAnalysis
Source§impl PartialEq for FileAnalysis
impl PartialEq for FileAnalysis
impl StructuralPartialEq for FileAnalysis
Auto Trait Implementations§
impl Freeze for FileAnalysis
impl RefUnwindSafe for FileAnalysis
impl Send for FileAnalysis
impl Sync for FileAnalysis
impl Unpin for FileAnalysis
impl UnsafeUnpin 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