[][src]Struct bitcoincore_rpc_json::GetRawTransactionResultVin

pub struct GetRawTransactionResultVin {
    pub sequence: u32,
    pub coinbase: Option<Vec<u8>>,
    pub txid: Option<Hash>,
    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<Hash>

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.

Methods

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]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Eq for GetRawTransactionResultVin[src]

impl PartialEq<GetRawTransactionResultVin> for GetRawTransactionResultVin[src]

impl Debug for GetRawTransactionResultVin[src]

impl Serialize for GetRawTransactionResultVin[src]

impl<'de> Deserialize<'de> for GetRawTransactionResultVin[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Configure for T where
    T: ?Sized
[src]

default fn readable(self) -> Readable<Self>[src]

Marks self as using is_human_readable == true

default fn compact(self) -> Compact<Self>[src]

Marks self as using is_human_readable == false