pub struct LexicalDocument {
pub id: MemoryId,
pub claim: String,
pub domains: Vec<String>,
}Expand description
Read-only document shape consumed by lexical retrieval.
The store integration can populate this from active/accepted memory rows once a read API exists. The retrieval layer itself does not mutate memory.
Fields§
§id: MemoryIdMemory identifier.
claim: StringDurable memory claim text.
domains: Vec<String>Domain tags attached to the memory.
Implementations§
Trait Implementations§
Source§impl Clone for LexicalDocument
impl Clone for LexicalDocument
Source§fn clone(&self) -> LexicalDocument
fn clone(&self) -> LexicalDocument
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 moreSource§impl Debug for LexicalDocument
impl Debug for LexicalDocument
Source§impl PartialEq for LexicalDocument
impl PartialEq for LexicalDocument
Source§fn eq(&self, other: &LexicalDocument) -> bool
fn eq(&self, other: &LexicalDocument) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for LexicalDocument
impl StructuralPartialEq for LexicalDocument
Auto Trait Implementations§
impl Freeze for LexicalDocument
impl RefUnwindSafe for LexicalDocument
impl Send for LexicalDocument
impl Sync for LexicalDocument
impl Unpin for LexicalDocument
impl UnsafeUnpin for LexicalDocument
impl UnwindSafe for LexicalDocument
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