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: u32
coinbase: 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
sourceimpl GetRawTransactionResultVin
impl GetRawTransactionResultVin
sourcepub fn is_coinbase(&self) -> bool
pub fn is_coinbase(&self) -> bool
Whether this input is from a coinbase tx. The [txid], [vout] and [script_sig] fields are not provided for coinbase transactions.
Trait Implementations
sourceimpl Clone for GetRawTransactionResultVin
impl Clone for GetRawTransactionResultVin
sourcefn clone(&self) -> GetRawTransactionResultVin
fn clone(&self) -> GetRawTransactionResultVin
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GetRawTransactionResultVin
impl Debug for GetRawTransactionResultVin
sourceimpl<'de> Deserialize<'de> for GetRawTransactionResultVin
impl<'de> Deserialize<'de> for GetRawTransactionResultVin
sourcefn 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
sourceimpl PartialEq<GetRawTransactionResultVin> for GetRawTransactionResultVin
impl PartialEq<GetRawTransactionResultVin> for GetRawTransactionResultVin
sourcefn eq(&self, other: &GetRawTransactionResultVin) -> bool
fn eq(&self, other: &GetRawTransactionResultVin) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for GetRawTransactionResultVin
impl StructuralEq for GetRawTransactionResultVin
impl StructuralPartialEq for GetRawTransactionResultVin
Auto Trait Implementations
impl RefUnwindSafe for GetRawTransactionResultVin
impl Send for GetRawTransactionResultVin
impl Sync for GetRawTransactionResultVin
impl Unpin for GetRawTransactionResultVin
impl UnwindSafe for GetRawTransactionResultVin
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more