Struct iota_client::api::GetAddressesBuilder
source · [−]pub struct GetAddressesBuilder<'a> { /* private fields */ }
Expand description
Builder of get_addresses API
Implementations
sourceimpl<'a> GetAddressesBuilder<'a>
impl<'a> GetAddressesBuilder<'a>
sourcepub fn new(manager: &'a SecretManager) -> Self
pub fn new(manager: &'a SecretManager) -> Self
Create get_addresses builder
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_coin_type(self, coin_type: u32) -> Self
pub fn with_coin_type(self, coin_type: u32) -> Self
Set the coin type
sourcepub fn with_account_index(self, account_index: u32) -> Self
pub fn with_account_index(self, account_index: u32) -> Self
Set the account index
sourcepub fn with_range(self, range: Range<u32>) -> Self
pub fn with_range(self, range: Range<u32>) -> Self
Set range to the builder
sourcepub fn with_internal_addresses(self, internal: bool) -> Self
pub fn with_internal_addresses(self, internal: bool) -> Self
Set if internal or public addresses should be generated
sourcepub fn with_bech32_hrp<T: Into<String>>(self, bech32_hrp: T) -> Self
pub fn with_bech32_hrp<T: Into<String>>(self, bech32_hrp: T) -> Self
Set bech32 human readable part (hrp)
sourcepub fn with_generate_metadata(self, metadata: GenerateAddressMetadata) -> Self
pub fn with_generate_metadata(self, metadata: GenerateAddressMetadata) -> Self
Set the metadata for the address generation (used for ledger to display addresses or not)
sourcepub fn set_options(self, options: GetAddressesBuilderOptions) -> Result<Self>
pub fn set_options(self, options: GetAddressesBuilderOptions) -> Result<Self>
Set multiple options from address builder options type Useful for bindings
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
sourcepub async fn get_raw(self) -> Result<Vec<Address>>
pub async fn get_raw(self) -> Result<Vec<Address>>
Consume the builder and get a vector of public addresses
sourcepub async fn get_all(self) -> Result<Bech32Addresses>
pub async fn get_all(self) -> Result<Bech32Addresses>
Consume the builder and get the vector of public and internal addresses bech32 encoded
sourcepub async fn get_all_raw(self) -> Result<RawAddresses>
pub async fn get_all_raw(self) -> Result<RawAddresses>
Consume the builder and get the vector of public and internal addresses
Auto Trait Implementations
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more