pub struct ExportSnapshot {
pub version: u32,
pub documents: Vec<WikiDocument>,
pub cards: Vec<KnowledgeCard>,
pub modules: Vec<ExportModuleSnapshot>,
}Expand description
导出快照({output_dir}/.state/export_snapshot.json)
对外契约:main.rs 的 export –skip-generate 直接消费本文件, 不再重跑生成流水线。documents/cards 为本次完整生成集(含受保护 跳过写盘的文档——磁盘保留人工版,快照记录的是生成意图集)。
Fields§
§version: u32§documents: Vec<WikiDocument>§cards: Vec<KnowledgeCard>§modules: Vec<ExportModuleSnapshot>Trait Implementations§
Source§impl Clone for ExportSnapshot
impl Clone for ExportSnapshot
Source§fn clone(&self) -> ExportSnapshot
fn clone(&self) -> ExportSnapshot
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 ExportSnapshot
impl Debug for ExportSnapshot
Source§impl<'de> Deserialize<'de> for ExportSnapshot
impl<'de> Deserialize<'de> for ExportSnapshot
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 ExportSnapshot
impl RefUnwindSafe for ExportSnapshot
impl Send for ExportSnapshot
impl Sync for ExportSnapshot
impl Unpin for ExportSnapshot
impl UnsafeUnpin for ExportSnapshot
impl UnwindSafe for ExportSnapshot
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