pub struct GetAddressesBuilder<'a> { /* private fields */ }
Expand description
Builder of get_addresses API
Implementations§
Source§impl<'a> GetAddressesBuilder<'a>
impl<'a> GetAddressesBuilder<'a>
Sourcepub fn with_client(self, client: &'a Client) -> Self
pub fn with_client(self, client: &'a Client) -> Self
Provide a client to get the bech32_hrp from the node
Sourcepub fn with_account_index(self, account_index: usize) -> Self
pub fn with_account_index(self, account_index: usize) -> Self
Set the account index
Sourcepub fn with_range(self, range: Range<usize>) -> Self
pub fn with_range(self, range: Range<usize>) -> Self
Set range to the builder
Sourcepub fn with_bech32_hrp(self, bech32_hrp: String) -> Self
pub fn with_bech32_hrp(self, bech32_hrp: String) -> Self
Set bech32 human readable part (hrp)
Sourcepub async fn finish(self) -> Result<Vec<String>>
pub async fn finish(self) -> Result<Vec<String>>
Consume the builder and get a vector of public addresses bech32 encoded
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for GetAddressesBuilder<'a>
impl<'a> !RefUnwindSafe for GetAddressesBuilder<'a>
impl<'a> Send for GetAddressesBuilder<'a>
impl<'a> Sync for GetAddressesBuilder<'a>
impl<'a> Unpin for GetAddressesBuilder<'a>
impl<'a> !UnwindSafe for GetAddressesBuilder<'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