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