pub struct BatchReceipt<BatchReceiptContents, TxReceiptContents> {
pub batch_hash: [u8; 32],
pub tx_receipts: Vec<TransactionReceipt<TxReceiptContents>>,
pub inner: BatchReceiptContents,
}
Expand description
A receipt for a batch of transactions. These receipts are stored in the rollup’s database
and may be queried via RPC. Batch receipts are generic over a type BatchReceiptContents
which the rollup
can use to store arbitrary typed data, like the gas used by the batch. They are also generic over a type TxReceiptContents
,
since they contain a vectors of TransactionReceipt
s.
A receipt giving the outcome of a batch of transactions
Fields§
§batch_hash: [u8; 32]
The canonical hash of this batch
tx_receipts: Vec<TransactionReceipt<TxReceiptContents>>
The receipts of all the transactions in this batch.
inner: BatchReceiptContents
Any additional structured data to be saved in the database and served over RPC
Trait Implementations§
Source§impl<BatchReceiptContents: Clone, TxReceiptContents: Clone> Clone for BatchReceipt<BatchReceiptContents, TxReceiptContents>
impl<BatchReceiptContents: Clone, TxReceiptContents: Clone> Clone for BatchReceipt<BatchReceiptContents, TxReceiptContents>
Source§fn clone(&self) -> BatchReceipt<BatchReceiptContents, TxReceiptContents>
fn clone(&self) -> BatchReceipt<BatchReceiptContents, TxReceiptContents>
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<BatchReceiptContents: Debug, TxReceiptContents: Debug> Debug for BatchReceipt<BatchReceiptContents, TxReceiptContents>
impl<BatchReceiptContents: Debug, TxReceiptContents: Debug> Debug for BatchReceipt<BatchReceiptContents, TxReceiptContents>
Source§impl<'de, BatchReceiptContents, TxReceiptContents> Deserialize<'de> for BatchReceipt<BatchReceiptContents, TxReceiptContents>where
BatchReceiptContents: Deserialize<'de>,
TxReceiptContents: Deserialize<'de>,
impl<'de, BatchReceiptContents, TxReceiptContents> Deserialize<'de> for BatchReceipt<BatchReceiptContents, TxReceiptContents>where
BatchReceiptContents: Deserialize<'de>,
TxReceiptContents: Deserialize<'de>,
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<BatchReceiptContents, TxReceiptContents> Serialize for BatchReceipt<BatchReceiptContents, TxReceiptContents>
impl<BatchReceiptContents, TxReceiptContents> Serialize for BatchReceipt<BatchReceiptContents, TxReceiptContents>
Auto Trait Implementations§
impl<BatchReceiptContents, TxReceiptContents> Freeze for BatchReceipt<BatchReceiptContents, TxReceiptContents>where
BatchReceiptContents: Freeze,
impl<BatchReceiptContents, TxReceiptContents> RefUnwindSafe for BatchReceipt<BatchReceiptContents, TxReceiptContents>where
BatchReceiptContents: RefUnwindSafe,
TxReceiptContents: RefUnwindSafe,
impl<BatchReceiptContents, TxReceiptContents> Send for BatchReceipt<BatchReceiptContents, TxReceiptContents>
impl<BatchReceiptContents, TxReceiptContents> Sync for BatchReceipt<BatchReceiptContents, TxReceiptContents>
impl<BatchReceiptContents, TxReceiptContents> Unpin for BatchReceipt<BatchReceiptContents, TxReceiptContents>
impl<BatchReceiptContents, TxReceiptContents> UnwindSafe for BatchReceipt<BatchReceiptContents, TxReceiptContents>where
BatchReceiptContents: UnwindSafe,
TxReceiptContents: UnwindSafe,
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