pub struct MemoryIndexRequest { /* private fields */ }Expand description
One scoped semantic-memory indexing request.
Implementations§
Source§impl MemoryIndexRequest
impl MemoryIndexRequest
pub fn new( scope: MemoryIndexScope, content: String, metadata: MemoryMetadata, ) -> Result<Self, MemoryStoreError>
pub fn scope(&self) -> &MemoryIndexScope
pub fn content(&self) -> &str
pub fn metadata(&self) -> &MemoryMetadata
pub fn into_parts(self) -> (MemoryIndexScope, String, MemoryMetadata)
Trait Implementations§
Source§impl Clone for MemoryIndexRequest
impl Clone for MemoryIndexRequest
Source§fn clone(&self) -> MemoryIndexRequest
fn clone(&self) -> MemoryIndexRequest
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 MemoryIndexRequest
impl RefUnwindSafe for MemoryIndexRequest
impl Send for MemoryIndexRequest
impl Sync for MemoryIndexRequest
impl Unpin for MemoryIndexRequest
impl UnsafeUnpin for MemoryIndexRequest
impl UnwindSafe for MemoryIndexRequest
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