pub struct SQLMintDatabase<RM>where
RM: DatabasePool + 'static,{ /* private fields */ }
Expand description
Mint SQL Database
Implementations§
Source§impl<RM> SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Trait Implementations§
Source§impl<RM> Clone for SQLMintDatabase<RM>where
RM: DatabasePool + 'static + Clone,
impl<RM> Clone for SQLMintDatabase<RM>where
RM: DatabasePool + 'static + Clone,
Source§fn clone(&self) -> SQLMintDatabase<RM>
fn clone(&self) -> SQLMintDatabase<RM>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<RM> Debug for SQLMintDatabase<RM>where
RM: DatabasePool + 'static + Debug,
impl<RM> Debug for SQLMintDatabase<RM>where
RM: DatabasePool + 'static + Debug,
Source§impl<RM> Database<Error> for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> Database<Error> for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§impl<RM> KVStore for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> KVStore for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§impl<RM> KVStoreDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> KVStoreDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§fn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn kv_read<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
key: &'life3 str,
) -> Pin<Box<dyn Future<Output = Result<Option<Vec<u8>>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Read value from key-value store
Source§fn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn kv_list<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
primary_namespace: &'life1 str,
secondary_namespace: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
List keys in a namespace
Source§impl<RM> KeysDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> KeysDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§fn begin_transaction<'a, 'async_trait>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn MintKeyDatabaseTransaction<'a, Error> + Send + Sync + 'a>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
fn begin_transaction<'a, 'async_trait>(
&'a self,
) -> Pin<Box<dyn Future<Output = Result<Box<dyn MintKeyDatabaseTransaction<'a, Error> + Send + Sync + 'a>, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'a: 'async_trait,
Beings a transaction
Source§fn get_active_keyset_id<'life0, 'life1, 'async_trait>(
&'life0 self,
unit: &'life1 CurrencyUnit,
) -> Pin<Box<dyn Future<Output = Result<Option<Id>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_active_keyset_id<'life0, 'life1, 'async_trait>(
&'life0 self,
unit: &'life1 CurrencyUnit,
) -> Pin<Box<dyn Future<Output = Result<Option<Id>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get Active Keyset
Source§fn get_active_keysets<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<CurrencyUnit, Id>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_active_keysets<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<HashMap<CurrencyUnit, Id>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get all Active Keyset
Source§fn get_keyset_info<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Id,
) -> Pin<Box<dyn Future<Output = Result<Option<MintKeySetInfo>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_keyset_info<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 Id,
) -> Pin<Box<dyn Future<Output = Result<Option<MintKeySetInfo>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
MintKeySetInfo
Source§fn get_keyset_infos<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MintKeySetInfo>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_keyset_infos<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MintKeySetInfo>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get
MintKeySetInfo
sSource§impl<RM> ProofsDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> ProofsDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§fn get_proofs_by_ys<'life0, 'life1, 'async_trait>(
&'life0 self,
ys: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<Proof>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_proofs_by_ys<'life0, 'life1, 'async_trait>(
&'life0 self,
ys: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<Proof>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
Proofs
by ysSource§fn get_proof_ys_by_quote_id<'life0, 'life1, 'async_trait>(
&'life0 self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Vec<PublicKey>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_proof_ys_by_quote_id<'life0, 'life1, 'async_trait>(
&'life0 self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Vec<PublicKey>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get ys by quote id
Source§impl<RM> QuotesDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> QuotesDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§fn get_mint_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mint_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
MintMintQuote
Source§fn get_mint_quote_by_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mint_quote_by_request<'life0, 'life1, 'async_trait>(
&'life0 self,
request: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all
MintMintQuote
sSource§fn get_mint_quote_by_request_lookup_id<'life0, 'life1, 'async_trait>(
&'life0 self,
request_lookup_id: &'life1 PaymentIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_mint_quote_by_request_lookup_id<'life0, 'life1, 'async_trait>(
&'life0 self,
request_lookup_id: &'life1 PaymentIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Option<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get all
MintMintQuote
sSource§fn get_mint_quotes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_mint_quotes<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<MintQuote>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Get Mint Quotes
Source§impl<RM> SignaturesDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
impl<RM> SignaturesDatabase for SQLMintDatabase<RM>where
RM: DatabasePool + 'static,
Source§fn get_blind_signatures_for_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_blind_signatures_for_quote<'life0, 'life1, 'async_trait>(
&'life0 self,
quote_id: &'life1 QuoteId,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get BlindSignature
s for quote
Source§fn get_blind_signatures<'life0, 'life1, 'async_trait>(
&'life0 self,
blinded_messages: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<BlindSignature>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_blind_signatures<'life0, 'life1, 'async_trait>(
&'life0 self,
blinded_messages: &'life1 [PublicKey],
) -> Pin<Box<dyn Future<Output = Result<Vec<Option<BlindSignature>>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
BlindSignature
sSource§fn get_blind_signatures_for_keyset<'life0, 'life1, 'async_trait>(
&'life0 self,
keyset_id: &'life1 Id,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_blind_signatures_for_keyset<'life0, 'life1, 'async_trait>(
&'life0 self,
keyset_id: &'life1 Id,
) -> Pin<Box<dyn Future<Output = Result<Vec<BlindSignature>, Self::Err>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Get
BlindSignature
s for keyset_idAuto Trait Implementations§
impl<RM> Freeze for SQLMintDatabase<RM>
impl<RM> RefUnwindSafe for SQLMintDatabase<RM>
impl<RM> Send for SQLMintDatabase<RM>
impl<RM> Sync for SQLMintDatabase<RM>
impl<RM> Unpin for SQLMintDatabase<RM>
impl<RM> UnwindSafe for SQLMintDatabase<RM>
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