pub struct IncrementalResult {
pub changed_files: Vec<PathBuf>,
pub affected_modules: Vec<String>,
pub entity_changes: EntityChangeSet,
pub has_deleted_files: bool,
}Expand description
增量更新结果
Fields§
§changed_files: Vec<PathBuf>实际发生变更的文件路径(用于 LLM 生成过滤)
affected_modules: Vec<String>受影响的模块名称列表(用于日志和下游分析)
entity_changes: EntityChangeSet实体级变化分类(GitDiff 策略产出;FileWatch 策略为空—— 下游据此跳过实体级摘要过滤,见 generate::run_generation_filtered)
has_deleted_files: bool本次变更是否含已删除文件(GitDiff 策略 = diff 删除集非空; FileWatch 策略 = 变更集中存在磁盘上已不存在的路径)。
纯删除时被删文件无 Insight、传播起点为空,changed_insights 为空 会走快照回填分支——该分支只按“整模块文件全删“过滤,多文件模块 删一文件时页面回填旧内容残留被删实体;同时全局文档(架构/概览/ index)回填旧版继续列出已删模块。此信号让下游(generate 回填分支 与 lib.rs 的 index 门控)识别删除场景并走重生成路径(v21 验证轮修复)。
Auto Trait Implementations§
impl Freeze for IncrementalResult
impl RefUnwindSafe for IncrementalResult
impl Send for IncrementalResult
impl Sync for IncrementalResult
impl Unpin for IncrementalResult
impl UnsafeUnpin for IncrementalResult
impl UnwindSafe for IncrementalResult
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> 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