pub struct ShardResult {
pub shard_id: ShardId,
pub doc_id: usize,
pub score: f64,
pub approx_score: i32,
}Expand description
Result from a single shard query
Fields§
§shard_id: ShardIdWhich shard this result came from
doc_id: usizeDocument ID within the corpus
score: f64Similarity score
approx_score: i32Approximate score from index
Trait Implementations§
Source§impl Clone for ShardResult
impl Clone for ShardResult
Source§fn clone(&self) -> ShardResult
fn clone(&self) -> ShardResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ShardResult
impl Debug for ShardResult
Source§impl PartialEq for ShardResult
impl PartialEq for ShardResult
impl StructuralPartialEq for ShardResult
Auto Trait Implementations§
impl Freeze for ShardResult
impl RefUnwindSafe for ShardResult
impl Send for ShardResult
impl Sync for ShardResult
impl Unpin for ShardResult
impl UnwindSafe for ShardResult
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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