Enum bdk_chain::bitcoin::address::AddressData
#[non_exhaustive]pub enum AddressData {
P2pkh {
pubkey_hash: PubkeyHash,
},
P2sh {
script_hash: ScriptHash,
},
Segwit {
witness_program: WitnessProgram,
},
}
Expand description
The data encoded by an Address
.
This is the data used to encumber an output that pays to this address i.e., it is the address excluding the network information.
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
Data encoded by a P2PKH address.
Fields
§
pubkey_hash: PubkeyHash
The pubkey hash used to encumber outputs to this address.
P2sh
Data encoded by a P2SH address.
Fields
§
script_hash: ScriptHash
The script hash used to encumber outputs to this address.
Segwit
Data encoded by a Segwit address.
Fields
§
witness_program: WitnessProgram
The witness program used to encumber outputs to this address.
Trait Implementations§
§impl Clone for AddressData
impl Clone for AddressData
§fn clone(&self) -> AddressData
fn clone(&self) -> AddressData
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 more§impl Debug for AddressData
impl Debug for AddressData
§impl Hash for AddressData
impl Hash for AddressData
§impl Ord for AddressData
impl Ord for AddressData
§impl PartialEq for AddressData
impl PartialEq for AddressData
§fn eq(&self, other: &AddressData) -> bool
fn eq(&self, other: &AddressData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for AddressData
impl PartialOrd for AddressData
§fn partial_cmp(&self, other: &AddressData) -> Option<Ordering>
fn partial_cmp(&self, other: &AddressData) -> 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 AddressData
impl StructuralPartialEq for AddressData
Auto Trait Implementations§
impl Freeze for AddressData
impl RefUnwindSafe for AddressData
impl Send for AddressData
impl Sync for AddressData
impl Unpin for AddressData
impl UnwindSafe for AddressData
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more