pub enum AccountAddressType {
P2PKH,
P2SHWPKH,
P2WPKH,
P2WSH(u32),
}Expand description
Address type an account is using
Variants§
P2PKH
legacy pay to public key hash (BIP44)
P2SHWPKH
transitional segwit pay to public key hash in legacy format (BIP49)
P2WPKH
native segwit pay to public key hash in bech format (BIP84)
P2WSH(u32)
native segwit pay to script
do not use 44, 49 or 84 for this parameter, to avoid confusion with above types
Only supports scripts that can be spent with following witness:
Implementations§
Trait Implementations§
Source§impl Clone for AccountAddressType
impl Clone for AccountAddressType
Source§fn clone(&self) -> AccountAddressType
fn clone(&self) -> AccountAddressType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for AccountAddressType
impl Eq for AccountAddressType
Source§impl Hash for AccountAddressType
impl Hash for AccountAddressType
Source§impl PartialEq for AccountAddressType
impl PartialEq for AccountAddressType
Source§fn eq(&self, other: &AccountAddressType) -> bool
fn eq(&self, other: &AccountAddressType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AccountAddressType
Auto Trait Implementations§
impl Freeze for AccountAddressType
impl RefUnwindSafe for AccountAddressType
impl Send for AccountAddressType
impl Sync for AccountAddressType
impl Unpin for AccountAddressType
impl UnsafeUnpin for AccountAddressType
impl UnwindSafe for AccountAddressType
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