pub struct BatchResponse<B, Tx> {
pub hash: [u8; 32],
pub tx_range: Range<u64>,
pub txs: Option<Vec<ItemOrHash<TxResponse<Tx>>>>,
pub custom_receipt: B,
}
Expand description
The response to a JSON-RPC request for a particular batch.
Fields§
§hash: [u8; 32]
The hex encoded batch hash.
tx_range: Range<u64>
The range of transactions in this batch.
txs: Option<Vec<ItemOrHash<TxResponse<Tx>>>>
The transactions in this batch, if the QueryMode
of the request is not Compact
.
custom_receipt: B
The custom receipt specified by the rollup. This typically contains information about the outcome of the batch.
Trait Implementations§
Source§impl<B: Clone, Tx: Clone> Clone for BatchResponse<B, Tx>
impl<B: Clone, Tx: Clone> Clone for BatchResponse<B, Tx>
Source§fn clone(&self) -> BatchResponse<B, Tx>
fn clone(&self) -> BatchResponse<B, Tx>
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<'de, B, Tx> Deserialize<'de> for BatchResponse<B, Tx>where
B: Deserialize<'de>,
Tx: Deserialize<'de>,
impl<'de, B, Tx> Deserialize<'de> for BatchResponse<B, Tx>where
B: Deserialize<'de>,
Tx: 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<B, Tx> Serialize for BatchResponse<B, Tx>
impl<B, Tx> Serialize for BatchResponse<B, Tx>
impl<B: Eq, Tx: Eq> Eq for BatchResponse<B, Tx>
impl<B, Tx> StructuralPartialEq for BatchResponse<B, Tx>
Auto Trait Implementations§
impl<B, Tx> Freeze for BatchResponse<B, Tx>where
B: Freeze,
impl<B, Tx> RefUnwindSafe for BatchResponse<B, Tx>where
B: RefUnwindSafe,
Tx: RefUnwindSafe,
impl<B, Tx> Send for BatchResponse<B, Tx>
impl<B, Tx> Sync for BatchResponse<B, Tx>
impl<B, Tx> Unpin for BatchResponse<B, Tx>
impl<B, Tx> UnwindSafe for BatchResponse<B, Tx>where
B: UnwindSafe,
Tx: 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