Struct bdk_wallet::WeightedUtxo
source · pub struct WeightedUtxo {
pub satisfaction_weight: Weight,
pub utxo: Utxo,
}
Expand description
A Utxo
with its satisfaction_weight
.
Fields§
§satisfaction_weight: Weight
The weight of the witness data and scriptSig
expressed in weight units. This is used to
properly maintain the feerate when adding this input to a transaction during coin selection.
utxo: Utxo
The UTXO
Trait Implementations§
source§impl Clone for WeightedUtxo
impl Clone for WeightedUtxo
source§fn clone(&self) -> WeightedUtxo
fn clone(&self) -> WeightedUtxo
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 WeightedUtxo
impl Debug for WeightedUtxo
source§impl PartialEq for WeightedUtxo
impl PartialEq for WeightedUtxo
source§fn eq(&self, other: &WeightedUtxo) -> bool
fn eq(&self, other: &WeightedUtxo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WeightedUtxo
impl StructuralPartialEq for WeightedUtxo
Auto Trait Implementations§
impl Freeze for WeightedUtxo
impl RefUnwindSafe for WeightedUtxo
impl Send for WeightedUtxo
impl Sync for WeightedUtxo
impl Unpin for WeightedUtxo
impl UnwindSafe for WeightedUtxo
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