Struct bitcoincore_rpc_json::GetRawTransactionResultVin [−][src]
pub struct GetRawTransactionResultVin {
pub sequence: u32,
pub coinbase: Option<Vec<u8>>,
pub txid: Option<Txid>,
pub vout: Option<u32>,
pub script_sig: Option<GetRawTransactionResultVinScriptSig>,
pub txinwitness: Option<Vec<Vec<u8>>>,
}Fields
sequence: u32coinbase: Option<Vec<u8>>The raw scriptSig in case of a coinbase tx.
txid: Option<Txid>Not provided for coinbase txs.
vout: Option<u32>Not provided for coinbase txs.
script_sig: Option<GetRawTransactionResultVinScriptSig>The scriptSig in case of a non-coinbase tx.
txinwitness: Option<Vec<Vec<u8>>>Not provided for coinbase txs.
Implementations
impl GetRawTransactionResultVin[src]
impl GetRawTransactionResultVin[src]pub fn is_coinbase(&self) -> bool[src]
Whether this input is from a coinbase tx. The [txid], [vout] and [script_sig] fields are not provided for coinbase transactions.
Trait Implementations
impl Clone for GetRawTransactionResultVin[src]
impl Clone for GetRawTransactionResultVin[src]fn clone(&self) -> GetRawTransactionResultVin[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'de> Deserialize<'de> for GetRawTransactionResultVin[src]
impl<'de> Deserialize<'de> for GetRawTransactionResultVin[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl PartialEq<GetRawTransactionResultVin> for GetRawTransactionResultVin[src]
impl PartialEq<GetRawTransactionResultVin> for GetRawTransactionResultVin[src]fn eq(&self, other: &GetRawTransactionResultVin) -> bool[src]
fn ne(&self, other: &GetRawTransactionResultVin) -> bool[src]
impl Serialize for GetRawTransactionResultVin[src]
impl Serialize for GetRawTransactionResultVin[src]