pub struct Log {
pub removed: bool,
pub log_index: U256,
pub transaction_index: U256,
pub transaction_hash: Digest,
pub block_hash: Digest,
pub block_number: U256,
pub address: Address,
pub data: Vec<u8>,
pub topics: ArrayVec<Digest, 4>,
}Expand description
An Ethereum log.
Fields§
§removed: boolWhether or not the log was removed because of a re-org or not.
log_index: U256The index of the log within the block.
transaction_index: U256The index of the transaction that emitted this log within the block.
transaction_hash: DigestThe hash of the transaction that emitted this log.
block_hash: DigestThe hash of the block containing the log.
block_number: U256The height of the block containing the log.
address: AddressThe address of the contract that emitted the log.
data: Vec<u8>The data emitted with the log.
topics: ArrayVec<Digest, 4>The topics emitted with the log.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Log
impl<'de> Deserialize<'de> for Log
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
impl Eq for Log
impl StructuralPartialEq for Log
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnwindSafe for Log
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§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.