pub struct DbSearchResult {
pub item_type: String,
pub item_id: Uuid,
pub document_box: DocumentBoxScopeRaw,
pub name_match_tsv: bool,
pub name_match: bool,
pub content_match: bool,
pub total_hits: i64,
pub page_matches: Vec<DbSearchPageResult>,
pub total_count: i64,
pub rank: f64,
}Fields§
§item_type: String§item_id: Uuid§document_box: DocumentBoxScopeRaw§name_match_tsv: bool§name_match: bool§content_match: bool§total_hits: i64§page_matches: Vec<DbSearchPageResult>§total_count: i64§rank: f64Trait Implementations§
Source§impl Debug for DbSearchResult
impl Debug for DbSearchResult
Source§impl<'a, R: Row> FromRow<'a, R> for DbSearchResultwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
DocumentBoxScopeRaw: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<DbSearchPageResult>>: Decode<'a, R::Database> + Type<R::Database>,
f64: Decode<'a, R::Database> + Type<R::Database>,
impl<'a, R: Row> FromRow<'a, R> for DbSearchResultwhere
&'a str: ColumnIndex<R>,
String: Decode<'a, R::Database> + Type<R::Database>,
Uuid: Decode<'a, R::Database> + Type<R::Database>,
DocumentBoxScopeRaw: Decode<'a, R::Database> + Type<R::Database>,
bool: Decode<'a, R::Database> + Type<R::Database>,
i64: Decode<'a, R::Database> + Type<R::Database>,
Json<Vec<DbSearchPageResult>>: Decode<'a, R::Database> + Type<R::Database>,
f64: Decode<'a, R::Database> + Type<R::Database>,
Auto Trait Implementations§
impl Freeze for DbSearchResult
impl RefUnwindSafe for DbSearchResult
impl Send for DbSearchResult
impl Sync for DbSearchResult
impl Unpin for DbSearchResult
impl UnwindSafe for DbSearchResult
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.