InvoiceAPI

Trait InvoiceAPI 

Source
pub trait InvoiceAPI {
    // Required methods
    fn create_invoice<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: &'life1 CreateInvoiceParams,
    ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Invoice>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn delete_invoice<'life0, 'async_trait>(
        &'life0 self,
        invoice_id: u64,
    ) -> Pin<Box<dyn Future<Output = CryptoBotResult<bool>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn get_invoices<'life0, 'life1, 'async_trait>(
        &'life0 self,
        params: Option<&'life1 GetInvoicesParams>,
    ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Vec<Invoice>>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

Source

fn create_invoice<'life0, 'life1, 'async_trait>( &'life0 self, params: &'life1 CreateInvoiceParams, ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Invoice>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source

fn delete_invoice<'life0, 'async_trait>( &'life0 self, invoice_id: u64, ) -> Pin<Box<dyn Future<Output = CryptoBotResult<bool>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn get_invoices<'life0, 'life1, 'async_trait>( &'life0 self, params: Option<&'life1 GetInvoicesParams>, ) -> Pin<Box<dyn Future<Output = CryptoBotResult<Vec<Invoice>>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§