Struct bdk_wallet::LocalOutput
source · pub struct LocalOutput {
pub outpoint: OutPoint,
pub txout: TxOut,
pub keychain: KeychainKind,
pub is_spent: bool,
pub derivation_index: u32,
pub chain_position: ChainPosition<ConfirmationBlockTime>,
}
Expand description
An unspent output owned by a Wallet
.
Fields§
§outpoint: OutPoint
Reference to a transaction output
txout: TxOut
Transaction output
keychain: KeychainKind
Type of keychain
is_spent: bool
Whether this UTXO is spent or not
derivation_index: u32
The derivation index for the script pubkey in the wallet
chain_position: ChainPosition<ConfirmationBlockTime>
The position of the output in the blockchain.
Trait Implementations§
source§impl Clone for LocalOutput
impl Clone for LocalOutput
source§fn clone(&self) -> LocalOutput
fn clone(&self) -> LocalOutput
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 LocalOutput
impl Debug for LocalOutput
source§impl<'de> Deserialize<'de> for LocalOutput
impl<'de> Deserialize<'de> for LocalOutput
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for LocalOutput
impl Hash for LocalOutput
source§impl PartialEq for LocalOutput
impl PartialEq for LocalOutput
source§fn eq(&self, other: &LocalOutput) -> bool
fn eq(&self, other: &LocalOutput) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocalOutput
impl Serialize for LocalOutput
impl Eq for LocalOutput
impl StructuralPartialEq for LocalOutput
Auto Trait Implementations§
impl Freeze for LocalOutput
impl RefUnwindSafe for LocalOutput
impl Send for LocalOutput
impl Sync for LocalOutput
impl Unpin for LocalOutput
impl UnwindSafe for LocalOutput
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