Struct iota_client::api::GetAddressesBuilder
source · 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