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§
source§impl 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§
source§impl Clone for GetRawTransactionResultVin
impl Clone for GetRawTransactionResultVin
source§fn clone(&self) -> GetRawTransactionResultVin
fn clone(&self) -> GetRawTransactionResultVin
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for GetRawTransactionResultVin
impl Debug for GetRawTransactionResultVin
source§impl<'de> Deserialize<'de> for GetRawTransactionResultVin
impl<'de> Deserialize<'de> for GetRawTransactionResultVin
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
source§impl PartialEq for GetRawTransactionResultVin
impl PartialEq for GetRawTransactionResultVin
source§fn 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 ==
.impl Eq for GetRawTransactionResultVin
impl StructuralPartialEq for GetRawTransactionResultVin
Auto Trait Implementations§
impl Freeze for GetRawTransactionResultVin
impl RefUnwindSafe for GetRawTransactionResultVin
impl Send for GetRawTransactionResultVin
impl Sync for GetRawTransactionResultVin
impl Unpin for GetRawTransactionResultVin
impl UnwindSafe for GetRawTransactionResultVin
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