Struct cosmwasm_std::TransactionInfo [−][src]
pub struct TransactionInfo {
pub index: u32,
}
Fields
index: u32
The position of this transaction in the block. The first transaction has index 0.
This allows you to get a unique transaction indentifier in this chain
using the pair (env.block.height
, env.transaction.index
).
Trait Implementations
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TransactionInfo
impl Send for TransactionInfo
impl Sync for TransactionInfo
impl Unpin for TransactionInfo
impl UnwindSafe for TransactionInfo
Blanket Implementations
Mutably borrows from an owned value. Read more