pub struct SnapshotData {
pub version: u32,
pub terms: Vec<SmolStr>,
pub docs: Vec<Option<DocData>>,
pub doc_ids: Vec<SmolStr>,
pub domains: HashMap<TermDomain, DomainIndex>,
pub total_len: i64,
pub domain_total_len: DomainLengths,
}Expand description
Persisted index state including documents and per-domain postings.
Fields§
§version: u32§terms: Vec<SmolStr>§docs: Vec<Option<DocData>>§doc_ids: Vec<SmolStr>§domains: HashMap<TermDomain, DomainIndex>§total_len: i64§domain_total_len: DomainLengthsTrait Implementations§
Source§impl Debug for SnapshotData
impl Debug for SnapshotData
Source§impl<'de> Deserialize<'de> for SnapshotData
impl<'de> Deserialize<'de> for SnapshotData
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 SnapshotData
impl RefUnwindSafe for SnapshotData
impl Send for SnapshotData
impl Sync for SnapshotData
impl Unpin for SnapshotData
impl UnsafeUnpin for SnapshotData
impl UnwindSafe for SnapshotData
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