Trait LnUrlHttpClient
Source pub trait LnUrlHttpClient {
// Required methods
fn get_pay_request_response<'life0, 'life1, 'async_trait>(
&'life0 self,
lnurl: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PayRequestResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_pay_request_callback_response<'life0, 'life1, 'async_trait>(
&'life0 self,
callback_url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<PayRequestCallbackResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_withdrawal_request_response<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<WithdrawRequestResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn send_invoice_for_withdraw_request<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<OkResponse>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn get_json<'life0, 'life1, 'async_trait>(
&'life0 self,
url: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}