pub struct MemoryResult {
pub content: String,
pub metadata: MemoryMetadata,
pub score: f32,
}Expand description
A memory search result.
Fields§
§content: StringThe text content of the memory.
metadata: MemoryMetadataMetadata about the source.
score: f32Relevance score (0.0 = no match, 1.0 = perfect match).
Trait Implementations§
Source§impl Clone for MemoryResult
impl Clone for MemoryResult
Source§fn clone(&self) -> MemoryResult
fn clone(&self) -> MemoryResult
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 MemoryResult
impl RefUnwindSafe for MemoryResult
impl Send for MemoryResult
impl Sync for MemoryResult
impl Unpin for MemoryResult
impl UnsafeUnpin for MemoryResult
impl UnwindSafe for MemoryResult
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