pub struct LoadedCorpus {
pub docs: Vec<(Doc, Option<String>)>,
pub errors: Vec<String>,
pub retired: Vec<(String, String)>,
pub retired_legacy: bool,
}Expand description
An already-read, already-parsed corpus snapshot — the input to
Store::build. The storage backend produces this from the durable medium
(reading and parsing documents and the retired ledger); build turns it
into the working store with no filesystem access.
Fields§
§docs: Vec<(Doc, Option<String>)>Each parsed document paired with its original mtime (rfc3339), used to backfill missing timestamps during sync.
errors: Vec<String>Non-fatal parse errors (unparsable files were skipped).
retired: Vec<(String, String)>The retired-id ledger as (id, title) pairs.
retired_legacy: boolWhether a legacy _retired.txt was present (triggers migration on flush).
Auto Trait Implementations§
impl Freeze for LoadedCorpus
impl RefUnwindSafe for LoadedCorpus
impl Send for LoadedCorpus
impl Sync for LoadedCorpus
impl Unpin for LoadedCorpus
impl UnsafeUnpin for LoadedCorpus
impl UnwindSafe for LoadedCorpus
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> 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