pub struct DistributedResult {
pub doc_id: usize,
pub shard_id: ShardId,
pub score: f64,
pub rank: usize,
}Expand description
Aggregated result from distributed query
Fields§
§doc_id: usizeDocument ID
shard_id: ShardIdSource shard
score: f64Final score
rank: usizeGlobal rank (1-indexed)
Trait Implementations§
Source§impl Clone for DistributedResult
impl Clone for DistributedResult
Source§fn clone(&self) -> DistributedResult
fn clone(&self) -> DistributedResult
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 DistributedResult
impl Debug for DistributedResult
Source§impl PartialEq for DistributedResult
impl PartialEq for DistributedResult
impl StructuralPartialEq for DistributedResult
Auto Trait Implementations§
impl Freeze for DistributedResult
impl RefUnwindSafe for DistributedResult
impl Send for DistributedResult
impl Sync for DistributedResult
impl Unpin for DistributedResult
impl UnwindSafe for DistributedResult
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