pub struct MemoryItem {
pub id: String,
pub tier: String,
pub chars: Option<u64>,
pub access: Value,
pub inject: Value,
pub scope: Option<String>,
pub score: Option<f64>,
pub content: Option<String>,
}Expand description
One row of memory list / memory search.
Fields§
§id: String§tier: String§chars: Option<u64>§access: Value§inject: Value§scope: Option<String>Search only: the memory’s scope.
score: Option<f64>Search only.
content: Option<String>Search only: the memory text.
Trait Implementations§
Source§impl Clone for MemoryItem
impl Clone for MemoryItem
Source§impl Debug for MemoryItem
impl Debug for MemoryItem
Source§impl PartialEq for MemoryItem
impl PartialEq for MemoryItem
impl StructuralPartialEq for MemoryItem
Auto Trait Implementations§
impl Forget for MemoryItem
impl Freeze for MemoryItem
impl Move for MemoryItem
impl RefUnwindSafe for MemoryItem
impl Send for MemoryItem
impl Sync for MemoryItem
impl Unpin for MemoryItem
impl UnsafeUnpin for MemoryItem
impl UnwindSafe for MemoryItem
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more