pub struct Vin {
pub txid: Txid,
pub vout: u32,
pub prevout: Option<Vout>,
pub scriptsig: ScriptBuf,
pub witness: Witness,
pub sequence: Sequence,
pub is_coinbase: bool,
}Expand description
An input to a Transaction.
Fields§
§txid: TxidThe Txid of the Transaction that created this output.
vout: u32The index of this output in the Transaction that created it.
prevout: Option<Vout>This input’s previous output Amount and script pubkey.
None if this input spends a coinbase output.
scriptsig: ScriptBufThe Script that unlocks this input.
witness: WitnessThe Witness that unlocks this input.
sequence: SequenceThe sequence value for this input.
is_coinbase: boolWhether this is a coinbase input.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Vin
impl<'de> Deserialize<'de> for Vin
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
impl Eq for Vin
impl StructuralPartialEq for Vin
Auto Trait Implementations§
impl Freeze for Vin
impl RefUnwindSafe for Vin
impl Send for Vin
impl Sync for Vin
impl Unpin for Vin
impl UnsafeUnpin for Vin
impl UnwindSafe for Vin
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