pub struct ScoredDocument {
pub document: Document,
pub score: f64,
}Expand description
A document paired with a similarity score from a vector query.
Fields§
§document: Document§score: f64Implementations§
Trait Implementations§
Source§impl Clone for ScoredDocument
impl Clone for ScoredDocument
Source§fn clone(&self) -> ScoredDocument
fn clone(&self) -> ScoredDocument
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 moreAuto Trait Implementations§
impl Freeze for ScoredDocument
impl RefUnwindSafe for ScoredDocument
impl Send for ScoredDocument
impl Sync for ScoredDocument
impl Unpin for ScoredDocument
impl UnsafeUnpin for ScoredDocument
impl UnwindSafe for ScoredDocument
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