pub struct Vin {
pub txid: Txid,
pub vout: u32,
pub prevout: Option<PrevOut>,
pub scriptsig: ScriptBuf,
pub witness: Vec<Vec<u8>>,
pub sequence: u32,
pub is_coinbase: bool,
}Expand description
Information about an input from a Transaction.
Fields§
§txid: TxidThe Txid of the previous Transaction this input spends from.
vout: u32The output index of the previous output in the Transaction that created it.
prevout: Option<PrevOut>The previous output amount and ScriptPubKey.
None if this is a coinbase input.
scriptsig: ScriptBufThe ScriptSig authorizes spending this input.
witness: Vec<Vec<u8>>The Witness that authorizes spending this input, if this is a SegWit spend.
sequence: u32The sequence value for this input, used to set RBF and Locktime behavior.
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 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