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 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> !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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more