#[non_exhaustive]pub enum AddressType {
P2pkh,
P2shP2wpkh,
P2wpkh,
P2tr,
}Expand description
Bitcoin address types.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
P2pkh
Pay to Public Key Hash (Legacy) — 1… / m…/n…
P2shP2wpkh
Pay to Script Hash wrapping P2WPKH (Nested SegWit) — 3… / 2…
P2wpkh
Pay to Witness Public Key Hash (Native SegWit) — bc1q… / tb1q…
P2tr
Pay to Taproot — bc1p… / tb1p…
Implementations§
Source§impl AddressType
impl AddressType
Trait Implementations§
Source§impl Clone for AddressType
impl Clone for AddressType
Source§fn clone(&self) -> AddressType
fn clone(&self) -> AddressType
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 AddressType
Source§impl Debug for AddressType
impl Debug for AddressType
Source§impl Default for AddressType
impl Default for AddressType
Source§fn default() -> AddressType
fn default() -> AddressType
Returns the “default value” for a type. Read more
Source§impl Display for AddressType
impl Display for AddressType
impl Eq for AddressType
Source§impl FromStr for AddressType
impl FromStr for AddressType
Source§impl PartialEq for AddressType
impl PartialEq for AddressType
impl StructuralPartialEq for AddressType
Auto Trait Implementations§
impl Freeze for AddressType
impl RefUnwindSafe for AddressType
impl Send for AddressType
impl Sync for AddressType
impl Unpin for AddressType
impl UnsafeUnpin for AddressType
impl UnwindSafe for AddressType
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