pub struct SemanticMatch {
pub unit_id: u64,
pub score: f32,
}Expand description
A single semantic search match.
Fields§
§unit_id: u64The matched unit.
score: f32Cosine similarity score.
Trait Implementations§
Source§impl Clone for SemanticMatch
impl Clone for SemanticMatch
Source§fn clone(&self) -> SemanticMatch
fn clone(&self) -> SemanticMatch
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 SemanticMatch
impl RefUnwindSafe for SemanticMatch
impl Send for SemanticMatch
impl Sync for SemanticMatch
impl Unpin for SemanticMatch
impl UnsafeUnpin for SemanticMatch
impl UnwindSafe for SemanticMatch
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