pub struct Wallet<'a> { /* private fields */ }Expand description
Wallet reads. API keys can never withdraw or transfer; there are no such methods.
Implementations§
Source§impl<'a> Wallet<'a>
impl<'a> Wallet<'a>
Sourcepub async fn deposits(
&self,
params: Option<&ListDepositsParams>,
) -> Result<Page<Deposit>>
pub async fn deposits( &self, params: Option<&ListDepositsParams>, ) -> Result<Page<Deposit>>
One page of deposits.
Sourcepub fn all_deposits(
&self,
params: Option<&ListDepositsParams>,
max_items: Option<usize>,
) -> ItemStream<'a, Deposit>
pub fn all_deposits( &self, params: Option<&ListDepositsParams>, max_items: Option<usize>, ) -> ItemStream<'a, Deposit>
Every deposit.
max_items stops the stream after that many items in total.
Sourcepub async fn withdrawals(
&self,
params: Option<&ListWithdrawalsParams>,
) -> Result<Page<Withdrawal>>
pub async fn withdrawals( &self, params: Option<&ListWithdrawalsParams>, ) -> Result<Page<Withdrawal>>
One page of withdrawals.
Sourcepub fn all_withdrawals(
&self,
params: Option<&ListWithdrawalsParams>,
max_items: Option<usize>,
) -> ItemStream<'a, Withdrawal>
pub fn all_withdrawals( &self, params: Option<&ListWithdrawalsParams>, max_items: Option<usize>, ) -> ItemStream<'a, Withdrawal>
Every withdrawal.
max_items stops the stream after that many items in total.
Sourcepub async fn withdrawal(&self, withdrawal_id: &str) -> Result<Withdrawal>
pub async fn withdrawal(&self, withdrawal_id: &str) -> Result<Withdrawal>
One withdrawal.
Sourcepub async fn withdrawal_addresses(&self) -> Result<Vec<WithdrawalAddress>>
pub async fn withdrawal_addresses(&self) -> Result<Vec<WithdrawalAddress>>
The saved withdrawal addresses.
Sourcepub async fn deposit_address(
&self,
params: &DepositAddressParams,
) -> Result<DepositAddress>
pub async fn deposit_address( &self, params: &DepositAddressParams, ) -> Result<DepositAddress>
Your deposit address for an asset on a network.
Side effect: the first call for an asset and network CREATES the address, and it is permanent; later calls return the same address. Always send the memo too when the response has one, or the deposit may be unrecoverable.
Trait Implementations§
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Wallet<'a>
impl<'a> !UnwindSafe for Wallet<'a>
impl<'a> Freeze for Wallet<'a>
impl<'a> Send for Wallet<'a>
impl<'a> Sync for Wallet<'a>
impl<'a> Unpin for Wallet<'a>
impl<'a> UnsafeUnpin for Wallet<'a>
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