pub struct Input {
pub outpoint: OutPoint,
pub previous_utxo: TxOut,
pub satisfaction_weight: u64,
}Expand description
An input that must be included in a transaction when performing coin selection through
CoinSelectionSource::select_confirmed_utxos. It is guaranteed to be a SegWit input, so it
must have an empty TxIn::script_sig when spent.
Fields§
§outpoint: OutPointThe unique identifier of the input.
previous_utxo: TxOutThe UTXO being spent by the input.
satisfaction_weight: u64The upper-bound weight consumed by the input’s full TxIn::script_sig and
TxIn::witness, each with their lengths included, required to satisfy the output’s
script.
Trait Implementations§
Source§impl Ord for Input
impl Ord for Input
Source§impl PartialOrd for Input
impl PartialOrd for Input
impl Eq for Input
impl StructuralPartialEq for Input
Auto Trait Implementations§
impl Freeze for Input
impl RefUnwindSafe for Input
impl Send for Input
impl Sync for Input
impl Unpin for Input
impl UnwindSafe for Input
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