pub struct Transaction<'a> {
pub header: &'a TransactionHeader,
pub read_slots: &'a [TransactionSlot],
pub write_slots: &'a [TransactionSlot],
pub payload: &'a [u128],
pub seal: &'a [u8],
}
Expand description
Similar to Transaction
, but doesn’t require allow
or data ownership.
Can be created with Transaction::as_ref()
call.
Fields§
§header: &'a TransactionHeader
§read_slots: &'a [TransactionSlot]
Slots in the form of TransactionSlot
that may be read during transaction processing.
The code slot of the contract that is being executed is implicitly included and doesn’t need to be repeated. Also slots that may also be written to do not need to be repeated in the read slots.
write_slots: &'a [TransactionSlot]
Slots in the form of TransactionSlot
that may be written during transaction processing
payload: &'a [u128]
§seal: &'a [u8]
Trait Implementations§
Source§impl<'a> Clone for Transaction<'a>
impl<'a> Clone for Transaction<'a>
Source§fn clone(&self) -> Transaction<'a>
fn clone(&self) -> Transaction<'a>
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<'a> Debug for Transaction<'a>
impl<'a> Debug for Transaction<'a>
impl<'a> Copy for Transaction<'a>
Auto Trait Implementations§
impl<'a> Freeze for Transaction<'a>
impl<'a> RefUnwindSafe for Transaction<'a>
impl<'a> Send for Transaction<'a>
impl<'a> Sync for Transaction<'a>
impl<'a> Unpin for Transaction<'a>
impl<'a> UnwindSafe for Transaction<'a>
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