Struct oasis_runtime_sdk::state::TransactionWithMeta
source · pub struct TransactionWithMeta {
pub data: Transaction,
pub size: u32,
pub index: usize,
pub hash: Hash,
}
Expand description
Decoded transaction with additional metadata.
Fields§
§data: Transaction
Decoded transaction.
size: u32
Transaction size.
index: usize
Transaction index within the batch.
hash: Hash
Transaction hash.
Implementations§
source§impl TransactionWithMeta
impl TransactionWithMeta
sourcepub fn internal(tx: Transaction) -> Self
pub fn internal(tx: Transaction) -> Self
Create transaction with metadata for an internally generated transaction.
Internally generated transactions have zero size, index and hash.
Trait Implementations§
source§impl Clone for TransactionWithMeta
impl Clone for TransactionWithMeta
source§fn clone(&self) -> TransactionWithMeta
fn clone(&self) -> TransactionWithMeta
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 moreAuto Trait Implementations§
impl Freeze for TransactionWithMeta
impl RefUnwindSafe for TransactionWithMeta
impl Send for TransactionWithMeta
impl Sync for TransactionWithMeta
impl Unpin for TransactionWithMeta
impl UnwindSafe for TransactionWithMeta
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)