pub struct EmbeddingMatch {
pub unit_id: u64,
pub score: f32,
}Expand description
A single search result with its similarity score.
Fields§
§unit_id: u64The code unit ID.
score: f32Cosine similarity score in [-1.0, 1.0].
Trait Implementations§
Source§impl Clone for EmbeddingMatch
impl Clone for EmbeddingMatch
Source§fn clone(&self) -> EmbeddingMatch
fn clone(&self) -> EmbeddingMatch
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 EmbeddingMatch
impl RefUnwindSafe for EmbeddingMatch
impl Send for EmbeddingMatch
impl Sync for EmbeddingMatch
impl Unpin for EmbeddingMatch
impl UnsafeUnpin for EmbeddingMatch
impl UnwindSafe for EmbeddingMatch
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