pub struct GetAddressesOptions {
pub coin_type: u32,
pub account_index: u32,
pub range: Range<u32>,
pub bech32_hrp: Hrp,
pub options: Option<GenerateAddressOptions>,
}
Available on crate feature
client
only.Fields§
§coin_type: u32
Coin type
account_index: u32
Account index
range: Range<u32>
Range
bech32_hrp: Hrp
Bech32 human readable part
options: Option<GenerateAddressOptions>
Options
Implementations§
Source§impl GetAddressesOptions
impl GetAddressesOptions
pub async fn from_client(client: &Client) -> Result<Self>
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_bech32_hrp(self, bech32_hrp: Hrp) -> Self
pub fn with_bech32_hrp(self, bech32_hrp: Hrp) -> Self
Set bech32 human readable part (hrp)
Sourcepub fn try_with_bech32_hrp(
self,
bech32_hrp: impl ConvertTo<Hrp>,
) -> Result<Self>
pub fn try_with_bech32_hrp( self, bech32_hrp: impl ConvertTo<Hrp>, ) -> Result<Self>
Set bech32 human readable part (hrp) from something that might be valid
pub fn internal(self) -> Self
Sourcepub fn with_options(
self,
options: impl Into<Option<GenerateAddressOptions>>,
) -> Self
pub fn with_options( self, options: impl Into<Option<GenerateAddressOptions>>, ) -> Self
Set the metadata for the address generation (used for ledger to display addresses or not)
Trait Implementations§
Source§impl Clone for GetAddressesOptions
impl Clone for GetAddressesOptions
Source§fn clone(&self) -> GetAddressesOptions
fn clone(&self) -> GetAddressesOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GetAddressesOptions
impl Debug for GetAddressesOptions
Source§impl Default for GetAddressesOptions
impl Default for GetAddressesOptions
Source§impl<'de> Deserialize<'de> for GetAddressesOptionswhere
GetAddressesOptions: Default,
impl<'de> Deserialize<'de> for GetAddressesOptionswhere
GetAddressesOptions: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GetAddressesOptions
impl RefUnwindSafe for GetAddressesOptions
impl Send for GetAddressesOptions
impl Sync for GetAddressesOptions
impl Unpin for GetAddressesOptions
impl UnwindSafe for GetAddressesOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more