pub trait TransactionStore: Send + Sync {
// Required methods
fn upsert<'life0, 'async_trait>(
&'life0 self,
record: TransactionRecord,
) -> Pin<Box<dyn Future<Output = Result<(), AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn get<'life0, 'async_trait>(
&'life0 self,
lookup: TransactionLookup,
) -> Pin<Box<dyn Future<Output = Result<Option<TransactionRecord>, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
fn list_unresolved<'life0, 'async_trait>(
&'life0 self,
request: ListUnresolvedTransactionsRequest,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionRecord>, AdkError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}Available on crate feature
payments only.Expand description
Durable structured transaction storage keyed by canonical transaction ID.