pub struct Meta {
pub schema_version: u32,
pub segments: Vec<u64>,
pub next_segment_id: u64,
pub last_indexed: u64,
pub doc_count: u64,
pub symbol_count: u64,
pub indexed_git_head: String,
pub indexed_branch: String,
pub pending_tombstones: Vec<PendingTombstones>,
}Expand description
Index-wide manifest describing the set of live segments.
Fields§
§schema_version: u32§segments: Vec<u64>IDs of segments that make up the current index.
next_segment_id: u64Monotonic counter for allocating new segment IDs.
last_indexed: u64Unix timestamp (seconds) of the last successful index operation.
doc_count: u64Total live documents across all segments.
symbol_count: u64Total symbols across all segments.
indexed_git_head: StringGit commit sha at the time of indexing (empty if not a repo). Lets callers detect that the working tree moved (e.g. a branch switch).
indexed_branch: StringGit branch name at the time of indexing (empty if not a repo).
pending_tombstones: Vec<PendingTombstones>Deletes published with the manifest but not yet applied to live
bitmaps (see PendingTombstones). Normally empty; non-empty only in
the window between an incremental publish and its bitmap writes (or
after a crash inside that window, until the next index op recovers).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Meta
impl<'de> Deserialize<'de> for Meta
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>,
Auto Trait Implementations§
impl Freeze for Meta
impl RefUnwindSafe for Meta
impl Send for Meta
impl Sync for Meta
impl Unpin for Meta
impl UnsafeUnpin for Meta
impl UnwindSafe for Meta
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
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> ⓘ
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> ⓘ
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