pub struct GetBalanceBuilder<'a> { /* private fields */ }
Expand description
Builder of get_balance API
Implementations§
Source§impl<'a> GetBalanceBuilder<'a>
impl<'a> GetBalanceBuilder<'a>
Sourcepub fn with_account_index(self, account_index: usize) -> Self
pub fn with_account_index(self, account_index: usize) -> Self
Sets the account index.
Sourcepub fn with_initial_address_index(self, initial_address_index: usize) -> Self
pub fn with_initial_address_index(self, initial_address_index: usize) -> Self
Sets the index of the address to start looking for balance.
Sourcepub fn with_gap_limit(self, gap_limit: usize) -> Self
pub fn with_gap_limit(self, gap_limit: usize) -> Self
Sets the gap limit to specify how many addresses will be checked each round. If gap_limit amount of addresses in a row have no balance the function will return.
Auto Trait Implementations§
impl<'a> Freeze for GetBalanceBuilder<'a>
impl<'a> !RefUnwindSafe for GetBalanceBuilder<'a>
impl<'a> Send for GetBalanceBuilder<'a>
impl<'a> Sync for GetBalanceBuilder<'a>
impl<'a> Unpin for GetBalanceBuilder<'a>
impl<'a> !UnwindSafe for GetBalanceBuilder<'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