#[non_exhaustive]pub struct Log {
pub address: Address,
pub topics: Vec<B256>,
pub data: Vec<u8>,
pub block_number: Option<u64>,
pub block_hash: Option<B256>,
pub transaction_hash: Option<B256>,
pub transaction_index: Option<u64>,
pub log_index: Option<u64>,
pub removed: bool,
}Expand description
One log, from a receipt or eth_getLogs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.address: AddressThe contract that emitted it.
topics: Vec<B256>The indexed topics; the first is the event signature hash unless the event is anonymous.
data: Vec<u8>The non-indexed data, ABI encoded.
block_number: Option<u64>The number of the block it is in (blockNumber); None while pending.
block_hash: Option<B256>The hash of the block it is in (blockHash); None while pending.
transaction_hash: Option<B256>The hash of the transaction that emitted it (transactionHash); None while pending.
transaction_index: Option<u64>That transaction’s position in the block (transactionIndex); None while pending.
log_index: Option<u64>Its position among the block’s logs (logIndex); None while pending.
removed: boolDropped by a reorganisation.
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 Forget for Log
impl Freeze for Log
impl Move for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin for Log
impl UnsafeUnpin 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.