pub struct ArchivalRecord {
pub id: String,
pub text: String,
pub metadata: HashMap<String, Value>,
pub score: Option<f64>,
}Expand description
A fact stored in archival memory, returned from a search.
Fields§
§id: StringBackend-assigned unique identifier.
text: StringThe fact’s text content.
metadata: HashMap<String, Value>Arbitrary metadata attached at insert time.
score: Option<f64>Relevance score from the search backend, if any (higher = more
relevant). None for retrieval methods that don’t score.
Trait Implementations§
Source§impl Clone for ArchivalRecord
impl Clone for ArchivalRecord
Source§fn clone(&self) -> ArchivalRecord
fn clone(&self) -> ArchivalRecord
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 Freeze for ArchivalRecord
impl RefUnwindSafe for ArchivalRecord
impl Send for ArchivalRecord
impl Sync for ArchivalRecord
impl Unpin for ArchivalRecord
impl UnsafeUnpin for ArchivalRecord
impl UnwindSafe for ArchivalRecord
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