pub struct AnalysisStats {
pub files_scanned: usize,
pub files_parsed: usize,
pub files_failed: usize,
pub total_entities: usize,
pub total_edges: usize,
pub modules_detected: usize,
pub generation_time_ms: u64,
pub failed_modules: Vec<String>,
}Expand description
分析统计信息
Fields§
§files_scanned: usize§files_parsed: usize§files_failed: usize扫描范围内解析失败的文件数(非 UTF-8 / tree-sitter 解析错误; B5 失败可观测——此前失败文件仅在日志出现,统计无法反映)
total_entities: usize§total_edges: usize§modules_detected: usize§generation_time_ms: u64§failed_modules: Vec<String>本次生成失败被隔离的模块名(卡片或页面生成失败,v22 修复): 写入生成状态供下次 update 补偿重试;也供调用方(doctor/报告)观测
Trait Implementations§
Source§impl Clone for AnalysisStats
impl Clone for AnalysisStats
Source§fn clone(&self) -> AnalysisStats
fn clone(&self) -> AnalysisStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AnalysisStats
impl Debug for AnalysisStats
Source§impl Default for AnalysisStats
impl Default for AnalysisStats
Source§fn default() -> AnalysisStats
fn default() -> AnalysisStats
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AnalysisStats
impl RefUnwindSafe for AnalysisStats
impl Send for AnalysisStats
impl Sync for AnalysisStats
impl Unpin for AnalysisStats
impl UnsafeUnpin for AnalysisStats
impl UnwindSafe for AnalysisStats
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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