pub struct WikiConfig {
pub wiki: WikiSection,
pub llm: LlmSection,
pub embed: EmbedSection,
pub output_dir: Option<PathBuf>,
}Expand description
全局配置
v30 精简后的配置面:只保留「凭据 / 模型选择 / 主语言」三类 用户真正需要决策的项;输出目录、扫描范围、增量策略、搜索/嵌入开关、 计划文件等算法细节全部硬编码(见常量区与扫描器内置过滤)。
Fields§
§wiki: WikiSection§llm: LlmSection§embed: EmbedSection§output_dir: Option<PathBuf>运行时输出目录(serde(skip):配置文件中不可写,由 load_config_with_output 注入——CLI –output 覆盖或 root 化后的 绝对路径;None 时由 output_dir() 方法兜底硬编码常量)。 使用场景:bench 跑分把产物写到隔离目录,不污染真实 .code-repo-wiki。
Implementations§
Source§impl WikiConfig
impl WikiConfig
Sourcepub fn output_dir(&self) -> &Path
pub fn output_dir(&self) -> &Path
输出目录解析:运行时注入优先(–output 覆盖 / root 化), 缺省回退硬编码常量 OUTPUT_DIR(相对当前工作目录)。
Trait Implementations§
Source§impl Clone for WikiConfig
impl Clone for WikiConfig
Source§fn clone(&self) -> WikiConfig
fn clone(&self) -> WikiConfig
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 WikiConfig
impl Debug for WikiConfig
Source§impl Default for WikiConfig
impl Default for WikiConfig
Source§fn default() -> WikiConfig
fn default() -> WikiConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WikiConfig
impl<'de> Deserialize<'de> for WikiConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WikiConfig
impl RefUnwindSafe for WikiConfig
impl Send for WikiConfig
impl Sync for WikiConfig
impl Unpin for WikiConfig
impl UnsafeUnpin for WikiConfig
impl UnwindSafe for WikiConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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