pub enum BtcAddressType {
P2pkh,
P2wpkh,
P2shP2wpkh,
P2tr,
}Expand description
Btc address types
Variants§
P2pkh
Pay to public key hash.
P2wpkh
Pay to witness public key hash.
P2shP2wpkh
Pay to script hash (P2SH) wrapped pay to witness public key hash.
P2tr
Taproot.
Trait Implementations§
source§impl Clone for BtcAddressType
impl Clone for BtcAddressType
source§fn clone(&self) -> BtcAddressType
fn clone(&self) -> BtcAddressType
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 BtcAddressType
impl Debug for BtcAddressType
source§impl Hash for BtcAddressType
impl Hash for BtcAddressType
source§impl Ord for BtcAddressType
impl Ord for BtcAddressType
source§fn cmp(&self, other: &BtcAddressType) -> Ordering
fn cmp(&self, other: &BtcAddressType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for BtcAddressType
impl PartialEq for BtcAddressType
source§impl PartialOrd for BtcAddressType
impl PartialOrd for BtcAddressType
impl Eq for BtcAddressType
impl StructuralPartialEq for BtcAddressType
Auto Trait Implementations§
impl Freeze for BtcAddressType
impl RefUnwindSafe for BtcAddressType
impl Send for BtcAddressType
impl Sync for BtcAddressType
impl Unpin for BtcAddressType
impl UnwindSafe for BtcAddressType
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)