Struct bitcoin_tx::TxIn
source · pub struct TxIn {
pub prevout: OutPoint,
pub script_sig: Script,
pub n_sequence: u32,
pub script_witness: ScriptWitness,
}Expand description
| An input of a transaction. It contains | the location of the previous transaction’s | output that it claims and a signature | that matches the output’s public key. |
Fields§
§prevout: OutPoint§script_sig: Script§n_sequence: u32§script_witness: ScriptWitness| Only serialized through CTransaction |
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for TxIn
impl<'de> Deserialize<'de> for TxIn
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<TxIn> for TxIn
impl PartialEq<TxIn> for TxIn
source§impl RecursiveDynamicUsage for TxIn
impl RecursiveDynamicUsage for TxIn
fn recursive_dynamic_usage(&self) -> usize
impl Eq for TxIn
Auto Trait Implementations§
impl RefUnwindSafe for TxIn
impl Send for TxIn
impl Sync for TxIn
impl Unpin for TxIn
impl UnwindSafe for TxIn
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere U: CastFrom<T>,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more