pub struct Memory {
pub id: String,
pub scope: Scope,
pub kind: Kind,
pub title: String,
pub description: String,
pub text: String,
pub links: Vec<String>,
pub created_unix_ms: u64,
pub updated_unix_ms: u64,
pub path: Option<PathBuf>,
pub score: Option<u32>,
}Expand description
One memory.
Fields§
§id: String<scope>/<name>; stable while the memory exists.
scope: Scope§kind: Kind§title: String§description: StringOne line, for the index.
text: String§links: Vec<String>§created_unix_ms: u64§updated_unix_ms: u64§path: Option<PathBuf>The file that holds it, for a provider that keeps files.
score: Option<u32>Set by recall: how well it matched, higher is better.
Trait Implementations§
impl Eq for Memory
impl StructuralPartialEq for Memory
Auto Trait Implementations§
impl Forget for Memory
impl Freeze for Memory
impl Move for Memory
impl RefUnwindSafe for Memory
impl Send for Memory
impl Sync for Memory
impl Unpin for Memory
impl UnsafeUnpin for Memory
impl UnwindSafe for Memory
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.