pub struct InMemoryHit<E> {
pub episode: E,
pub score: f32,
pub key: String,
}Expand description
A retrieval hit returned by InMemoryStore::retrieve_similar.
Fields§
§episode: EThe stored episode.
score: f32Lexical similarity score in [0, 1]. Higher is more similar.
key: StringStable storage key assigned by InMemoryStore::append.
Trait Implementations§
Source§impl<E: Clone> Clone for InMemoryHit<E>
impl<E: Clone> Clone for InMemoryHit<E>
Source§fn clone(&self) -> InMemoryHit<E>
fn clone(&self) -> InMemoryHit<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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<E> Freeze for InMemoryHit<E>where
E: Freeze,
impl<E> RefUnwindSafe for InMemoryHit<E>where
E: RefUnwindSafe,
impl<E> Send for InMemoryHit<E>where
E: Send,
impl<E> Sync for InMemoryHit<E>where
E: Sync,
impl<E> Unpin for InMemoryHit<E>where
E: Unpin,
impl<E> UnsafeUnpin for InMemoryHit<E>where
E: UnsafeUnpin,
impl<E> UnwindSafe for InMemoryHit<E>where
E: UnwindSafe,
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