pub struct WikiDocument {
pub title: String,
pub kind: DocumentKind,
pub content: String,
pub language: String,
pub module_path: Vec<String>,
pub references: Vec<Reference>,
pub last_updated: String,
pub based_on_commit: Option<String>,
pub fingerprint: Option<String>,
}Expand description
Wiki 文档
Fields§
§title: String§kind: DocumentKind§content: String§language: String文档语言(多语言独立生成时写入对应语言目录)
module_path: Vec<String>§references: Vec<Reference>交叉引用链接
last_updated: String最后更新时间(ISO 8601)
based_on_commit: Option<String>基于的 git 提交短哈希(v32 10.2 基线行)
取值 = 生成时 HEAD 提交短哈希(前 8 位);非 git 仓库或无 HEAD 时为 None(渲染端省略「基于提交」行)。HEAD 是非易变信号—— 同一提交下多次生成值不变,不破坏 test_determinism 的内容级哈希; 与 llms_txt.rs「内容禁止注入易变时间戳/基线」契约的取舍:时间戳 每次生成都变(必须归一化),提交哈希只在代码变更时变(恰是页面 内容应当变化的时刻)。仅供人工核对产物对应的源码版本。
fingerprint: Option<String>源文件指纹(用于增量更新检测)
Trait Implementations§
Source§impl Clone for WikiDocument
impl Clone for WikiDocument
Source§fn clone(&self) -> WikiDocument
fn clone(&self) -> WikiDocument
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 WikiDocument
impl Debug for WikiDocument
Source§impl<'de> Deserialize<'de> for WikiDocument
impl<'de> Deserialize<'de> for WikiDocument
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 WikiDocument
impl RefUnwindSafe for WikiDocument
impl Send for WikiDocument
impl Sync for WikiDocument
impl Unpin for WikiDocument
impl UnsafeUnpin for WikiDocument
impl UnwindSafe for WikiDocument
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