pub struct BatchMemoryEntry {
pub text: String,
pub scope: MemoryScope,
pub kind: MemoryKind,
pub valid_from: Option<String>,
pub valid_to: Option<String>,
}Expand description
One entry in a add_memories_batch call.
text is required; all other fields are optional and fall back to
the defaults documented on each field.
Fields§
§text: StringThe memory text to store.
scope: MemoryScopeScope to store under. Defaults to MemoryScope::Project.
kind: MemoryKindMemory kind. Defaults to MemoryKind::Fact.
valid_from: Option<String>Flagship 1 / temporal: optional RFC 3339 valid-from bound.
None leaves the column NULL (valid forever from creation).
valid_to: Option<String>Flagship 1 / temporal: optional RFC 3339 valid-to bound.
None leaves the column NULL (no expiry).
Trait Implementations§
Source§impl Clone for BatchMemoryEntry
impl Clone for BatchMemoryEntry
Source§fn clone(&self) -> BatchMemoryEntry
fn clone(&self) -> BatchMemoryEntry
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 BatchMemoryEntry
impl RefUnwindSafe for BatchMemoryEntry
impl Send for BatchMemoryEntry
impl Sync for BatchMemoryEntry
impl Unpin for BatchMemoryEntry
impl UnsafeUnpin for BatchMemoryEntry
impl UnwindSafe for BatchMemoryEntry
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