pub struct LexicalIndexItem {Show 13 fields
pub id: String,
pub title: String,
pub scope: MemoryScope,
pub project_key: Option<String>,
pub type: DurableMemoryType,
pub status: DurableMemoryStatus,
pub tags: Vec<String>,
pub keywords: Vec<String>,
pub entities: Vec<String>,
pub updated_at: String,
pub created_at: String,
pub summary: String,
pub granularity: Option<TemporalGranularity>,
}Fields§
§id: String§title: String§scope: MemoryScope§project_key: Option<String>§type: DurableMemoryType§status: DurableMemoryStatus§keywords: Vec<String>§entities: Vec<String>§updated_at: String§created_at: String§summary: String§granularity: Option<TemporalGranularity>Optional temporal granularity carried from the source frontmatter so recall
can rank by cache-stability without re-reading every document. Back-compat:
older lexical.json index files predate this field and deserialize to None.
Trait Implementations§
Source§impl Clone for LexicalIndexItem
impl Clone for LexicalIndexItem
Source§fn clone(&self) -> LexicalIndexItem
fn clone(&self) -> LexicalIndexItem
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 LexicalIndexItem
impl Debug for LexicalIndexItem
Source§impl<'de> Deserialize<'de> for LexicalIndexItem
impl<'de> Deserialize<'de> for LexicalIndexItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LexicalIndexItem
impl RefUnwindSafe for LexicalIndexItem
impl Send for LexicalIndexItem
impl Sync for LexicalIndexItem
impl Unpin for LexicalIndexItem
impl UnsafeUnpin for LexicalIndexItem
impl UnwindSafe for LexicalIndexItem
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