Struct btcpay::core::client::BTCPayClient
source · pub struct BTCPayClient { /* private fields */ }
Implementations§
source§impl BTCPayClient
impl BTCPayClient
pub fn new( host: &str, keypair: KeyPair, merchant: Option<&str> ) -> Result<Self, Error>
pub async fn pair_client(&self, code: &str) -> Result<PairClientResponse, Error>
pub async fn create_invoice( &self, args: CreateInvoiceArgs ) -> Result<Invoice, Error>
pub async fn get_invoice(&self, invoice_id: &str) -> Result<Invoice, Error>
pub async fn get_invoices( &self, args: GetInvoicesArgs ) -> Result<Vec<Invoice>, Error>
Trait Implementations§
source§impl Clone for BTCPayClient
impl Clone for BTCPayClient
source§fn clone(&self) -> BTCPayClient
fn clone(&self) -> BTCPayClient
Returns a copy 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 moreAuto Trait Implementations§
impl !RefUnwindSafe for BTCPayClient
impl Send for BTCPayClient
impl Sync for BTCPayClient
impl Unpin for BTCPayClient
impl !UnwindSafe for BTCPayClient
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