pub struct IndexResult {
pub doc_id: String,
pub name: String,
pub format: DocumentFormat,
pub source_path: Option<PathBuf>,
pub tree: Option<DocumentTree>,
pub description: Option<String>,
pub page_count: Option<usize>,
pub line_count: Option<usize>,
pub metrics: IndexMetrics,
pub summary_cache: SummaryCache,
}Expand description
Final result from the index pipeline.
Fields§
§doc_id: StringDocument ID.
name: StringDocument name.
format: DocumentFormatDocument format.
source_path: Option<PathBuf>Source file path.
tree: Option<DocumentTree>Built document tree.
description: Option<String>Document description.
page_count: Option<usize>Page count (for PDFs).
line_count: Option<usize>Line count.
metrics: IndexMetricsPerformance metrics.
summary_cache: SummaryCacheSummary cache.
Implementations§
Source§impl IndexResult
impl IndexResult
Sourcepub fn tree(&self) -> Option<&DocumentTree>
pub fn tree(&self) -> Option<&DocumentTree>
Get the tree.
Sourcepub fn total_time_ms(&self) -> u64
pub fn total_time_ms(&self) -> u64
Get total indexing time in milliseconds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IndexResult
impl RefUnwindSafe for IndexResult
impl Send for IndexResult
impl Sync for IndexResult
impl Unpin for IndexResult
impl UnsafeUnpin for IndexResult
impl UnwindSafe for IndexResult
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
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