Enum monero::blockdata::transaction::TxIn [−][src]
pub enum TxIn { Gen { height: VarInt, }, ToKey { amount: VarInt, key_offsets: Vec<VarInt>, k_image: KeyImage, }, ToScript, ToScriptHash, }
Expand description
A transaction input, either a coinbase spend or a one-time key spend which defines the ring size and the key image to avoid double spend.
Variants
A coinbase input.
Show fields
Fields of Gen
height: VarInt
Block height of where the coinbase transaction is included.
A key input from a key output.
Show fields
Input from script output, not used.
Input from script hash output, not used.
Trait Implementations
impl<'de> Deserialize<'de> for TxIn
[src]
impl<'de> Deserialize<'de> for TxIn
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl StrictDecode for TxIn
[src]
impl StrictDecode for TxIn
[src]This is supported on crate feature
strict_encoding_support
only.impl StrictEncode for TxIn
[src]
impl StrictEncode for TxIn
[src]This is supported on crate feature
strict_encoding_support
only.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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,