[][src]Struct shesek_bitcoincore_rpc_json::GetRawTransactionResultVin

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]

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 Debug for GetRawTransactionResultVin[src]

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

impl Eq for GetRawTransactionResultVin[src]

impl PartialEq<GetRawTransactionResultVin> for GetRawTransactionResultVin[src]

impl Serialize for GetRawTransactionResultVin[src]

impl StructuralEq for GetRawTransactionResultVin[src]

impl StructuralPartialEq for GetRawTransactionResultVin[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.