pub struct SearchResult {
pub entity_id: EntityId,
pub distance: f32,
}Expand description
Result of a similarity search.
Fields§
§entity_id: EntityIdThe entity ID of the matching embedding.
distance: f32The distance to the query vector (lower is more similar for most metrics).
Implementations§
Trait Implementations§
Source§impl Clone for SearchResult
impl Clone for SearchResult
Source§fn clone(&self) -> SearchResult
fn clone(&self) -> SearchResult
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 SearchResult
impl Debug for SearchResult
Source§impl From<SearchResult> for VectorMatch
impl From<SearchResult> for VectorMatch
Source§fn from(result: SearchResult) -> Self
fn from(result: SearchResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SearchResult
impl RefUnwindSafe for SearchResult
impl Send for SearchResult
impl Sync for SearchResult
impl Unpin for SearchResult
impl UnwindSafe for SearchResult
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