pub struct PartialInput {
pub witness_txid: Txid,
pub witness_output_index: u32,
pub witness_utxo: TxOut,
pub sequence: Sequence,
pub locktime: LockTime,
pub amount: Option<u64>,
pub asset: Option<AssetId>,
pub secrets: Option<TxOutSecrets>,
}Fields§
§witness_txid: Txid§witness_output_index: u32§witness_utxo: TxOut§sequence: Sequence§locktime: LockTime§amount: Option<u64>§asset: Option<AssetId>§secrets: Option<TxOutSecrets>Implementations§
Source§impl PartialInput
impl PartialInput
pub fn new(utxo: UTXO) -> PartialInput
pub fn with_sequence(self, sequence: Sequence) -> PartialInput
pub fn with_locktime(self, locktime: LockTime) -> PartialInput
pub fn outpoint(&self) -> OutPoint
pub fn to_input(&self) -> Input
Trait Implementations§
Source§impl Clone for PartialInput
impl Clone for PartialInput
Source§fn clone(&self) -> PartialInput
fn clone(&self) -> PartialInput
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for PartialInput
impl RefUnwindSafe for PartialInput
impl Send for PartialInput
impl Sync for PartialInput
impl Unpin for PartialInput
impl UnsafeUnpin for PartialInput
impl UnwindSafe for PartialInput
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more