pub struct VectorMatch {
pub id: String,
pub score: f64,
pub payload: Value,
}Expand description
A match from vector similarity search.
Fields§
§id: StringID of the matched record.
score: f64Similarity score (0.0-1.0 for cosine, higher = more similar).
payload: ValuePayload from the matched record.
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 moreAuto 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