Struct sov_rollup_interface::stf::BatchReceipt
source · 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
Auto Trait Implementations§
impl<BatchReceiptContents, TxReceiptContents> RefUnwindSafe for BatchReceipt<BatchReceiptContents, TxReceiptContents>where BatchReceiptContents: RefUnwindSafe, TxReceiptContents: RefUnwindSafe,
impl<BatchReceiptContents, TxReceiptContents> Send for BatchReceipt<BatchReceiptContents, TxReceiptContents>where BatchReceiptContents: Send, TxReceiptContents: Send,
impl<BatchReceiptContents, TxReceiptContents> Sync for BatchReceipt<BatchReceiptContents, TxReceiptContents>where BatchReceiptContents: Sync, TxReceiptContents: Sync,
impl<BatchReceiptContents, TxReceiptContents> Unpin for BatchReceipt<BatchReceiptContents, TxReceiptContents>where BatchReceiptContents: Unpin, TxReceiptContents: Unpin,
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