pub trait BuyBitcoinProviderApi: Send + Sync {
// Required method
fn buy_bitcoin<'life0, 'async_trait>(
&'life0 self,
address: String,
locked_amount_sat: Option<u64>,
max_amount_sat: Option<u64>,
redirect_url: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait,
Self: 'async_trait;
}
Required Methods§
fn buy_bitcoin<'life0, 'async_trait>(
&'life0 self,
address: String,
locked_amount_sat: Option<u64>,
max_amount_sat: Option<u64>,
redirect_url: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn buy_bitcoin<'life0, 'async_trait>(
&'life0 self,
address: String,
locked_amount_sat: Option<u64>,
max_amount_sat: Option<u64>,
redirect_url: Option<String>,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Configure buying Bitcoin and return a URL to continue