pub struct Receipt {
pub status: bool,
pub actual_gas_used: u64,
pub logs: Vec<Log>,
pub logs_root: FixedBytes<32>,
pub tx: Signed<TxLegacy>,
pub contract_address: Option<Address>,
}
Fields§
§status: bool
§actual_gas_used: u64
§logs: Vec<Log>
§logs_root: FixedBytes<32>
§tx: Signed<TxLegacy>
§contract_address: Option<Address>
Implementations§
Source§impl Receipt
impl Receipt
pub fn generate_proof_for_log_hash( &self, log_index: usize, ) -> Result<MerkleProof, Error>
pub fn generate_proofs_for_log_hashes( &self, log_indices: &[usize], ) -> Result<Vec<MerkleProof>, Error>
pub fn generate_multi_proof_for_log_hashes( &self, ) -> (Vec<FixedBytes<32>>, MerkleMultiProof)
pub fn generate_multi_proof_for_log( &self, log_index: usize, ) -> Option<(Vec<FixedBytes<32>>, MerkleMultiProof)>
pub fn generate_multi_proof_for_logs( &self, ) -> (Vec<FixedBytes<32>>, MerkleMultiProof)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Receipt
impl<'de> Deserialize<'de> for Receipt
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Receipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Receipt, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hashable for Receipt
impl Hashable for Receipt
fn hash_custom(&self) -> FixedBytes<32>
Source§impl Merkleizable for Receipt
impl Merkleizable for Receipt
fn append_leaves(&self, builder: &mut MerkleBuilder)
fn leaves(&self) -> Vec<(String, FixedBytes<32>)>
fn to_merkle_tree(&self) -> StandardMerkleTree
fn generate_proof<T>(
&self,
prefix: &str,
item: &T,
) -> Result<MerkleProof, Error>where
T: Merkleizable,
fn generate_proofs<T>(
&self,
prefix: &str,
items: &[T],
) -> Result<Vec<MerkleProof>, Error>where
T: Merkleizable,
fn generate_multi_proof<T>(
&self,
prefix: &str,
item: &T,
) -> Option<(Vec<FixedBytes<32>>, MerkleMultiProof)>where
T: Merkleizable,
fn generate_multi_proofs<T>(
&self,
prefix: &str,
items: &[T],
) -> Option<(Vec<FixedBytes<32>>, MerkleMultiProof)>where
T: Merkleizable,
Source§impl Serialize for Receipt
impl Serialize for Receipt
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl TryInto<TransactionReceipt> for Receipt
impl TryInto<TransactionReceipt> for Receipt
impl Eq for Receipt
impl StructuralPartialEq for Receipt
Auto Trait Implementations§
impl !Freeze for Receipt
impl RefUnwindSafe for Receipt
impl Send for Receipt
impl Sync for Receipt
impl Unpin for Receipt
impl UnwindSafe for Receipt
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more