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§fn eq(&self, other: &BtcAddressType) -> bool
fn eq(&self, other: &BtcAddressType) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for BtcAddressType
impl PartialOrd for BtcAddressType
source§fn partial_cmp(&self, other: &BtcAddressType) -> Option<Ordering>
fn partial_cmp(&self, other: &BtcAddressType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl 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