pub struct GetBalance<'a> { /* private fields */ }Expand description
Builder for [Client::get_balance]
[`Client::get_balance`]: super::Client::get_balanceImplementations§
Source§impl<'a> GetBalance<'a>
impl<'a> GetBalance<'a>
pub fn new(client: &'a Client) -> Self
pub fn chain<V>(self, value: V) -> Selfwhere
V: TryInto<ChainSymbol>,
pub fn wallet_address<V>(self, value: V) -> Self
pub fn token_address<V>(self, value: V) -> Self
Sourcepub async fn send(self) -> Result<ResponseValue<WalletBalancesDto>, Error<()>>
pub async fn send(self) -> Result<ResponseValue<WalletBalancesDto>, Error<()>>
Sends a GET request to /v1/wallet/{chain}/{walletAddress}/balance
Trait Implementations§
Source§impl<'a> Clone for GetBalance<'a>
impl<'a> Clone for GetBalance<'a>
Source§fn clone(&self) -> GetBalance<'a>
fn clone(&self) -> GetBalance<'a>
Returns a duplicate 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<'a> Freeze for GetBalance<'a>
impl<'a> !RefUnwindSafe for GetBalance<'a>
impl<'a> Send for GetBalance<'a>
impl<'a> Sync for GetBalance<'a>
impl<'a> Unpin for GetBalance<'a>
impl<'a> !UnwindSafe for GetBalance<'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