pub struct FlattenedItemResult {
pub item_ty: SearchIndexType,
pub item_id: Uuid,
pub document_box: String,
pub page_matches: Vec<PageResult>,
pub total_hits: u64,
pub score: SearchScore,
pub name_match: bool,
pub content_match: bool,
}Expand description
Condensed version of a file result
Fields§
§item_ty: SearchIndexTypeType of item being included in the search index
item_id: UuidID of the item itself
document_box: StringScope the item is within
page_matches: Vec<PageResult>Matches within the page content
total_hits: u64§score: SearchScore§name_match: boolWhether the content matches
content_match: boolWhether the name matches
Trait Implementations§
Source§impl Debug for FlattenedItemResult
impl Debug for FlattenedItemResult
Source§impl From<DocboxSearchMatchRanked> for FlattenedItemResult
impl From<DocboxSearchMatchRanked> for FlattenedItemResult
Source§fn from(value: DocboxSearchMatchRanked) -> FlattenedItemResult
fn from(value: DocboxSearchMatchRanked) -> FlattenedItemResult
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FlattenedItemResult
impl RefUnwindSafe for FlattenedItemResult
impl Send for FlattenedItemResult
impl Sync for FlattenedItemResult
impl Unpin for FlattenedItemResult
impl UnsafeUnpin for FlattenedItemResult
impl UnwindSafe for FlattenedItemResult
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 moreCreates a shared type from an unshared type.