pub struct PaymentMemoryIndex { /* private fields */ }Available on crate feature
payments only.Expand description
Indexes safe payment summaries into semantic memory.
Implementations§
Source§impl PaymentMemoryIndex
impl PaymentMemoryIndex
Sourcepub fn new(memory_service: Arc<dyn MemoryService>) -> PaymentMemoryIndex
pub fn new(memory_service: Arc<dyn MemoryService>) -> PaymentMemoryIndex
Creates a new safe-summary memory indexer.
Sourcepub async fn index_summary(
&self,
identity: &AdkIdentity,
summary: &SafeTransactionSummary,
) -> Result<(), AdkError>
pub async fn index_summary( &self, identity: &AdkIdentity, summary: &SafeTransactionSummary, ) -> Result<(), AdkError>
Indexes one safe transaction summary under a transaction-scoped memory session key.
§Errors
Returns an error if the underlying memory service rejects the write.
Auto Trait Implementations§
impl Freeze for PaymentMemoryIndex
impl !RefUnwindSafe for PaymentMemoryIndex
impl Send for PaymentMemoryIndex
impl Sync for PaymentMemoryIndex
impl Unpin for PaymentMemoryIndex
impl UnsafeUnpin for PaymentMemoryIndex
impl !UnwindSafe for PaymentMemoryIndex
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