Struct alloy_zksync::types::Log
source · pub struct Log {Show 13 fields
pub address: Address,
pub topics: Vec<B256>,
pub data: Bytes,
pub block_hash: Option<B256>,
pub block_number: Option<U64>,
pub l1_batch_number: Option<U64>,
pub transaction_hash: Option<B256>,
pub transaction_index: Option<U64>,
pub log_index: Option<U64>,
pub transaction_log_index: Option<U64>,
pub log_type: Option<String>,
pub removed: Option<bool>,
pub block_timestamp: Option<U64>,
}
Expand description
A log produced by a transaction.
Fields§
§address: Address
Address from which this log originated.
topics: Vec<B256>
An array of 0 to 4 indexed log arguments.
data: Bytes
Contains non-indexed arguments of the log.
block_hash: Option<B256>
Hash of the block where this log was in.
block_number: Option<U64>
Block number where this log was in.
l1_batch_number: Option<U64>
L1 batch number where this log was in.
transaction_hash: Option<B256>
Hash of the transactions from which this log was created.
transaction_index: Option<U64>
Transaction index position from which the log created.
log_index: Option<U64>
Log index position in the block.
transaction_log_index: Option<U64>
Log index position in the transaction.
log_type: Option<String>
Log type.
removed: Option<bool>
True when the log was removed, false if it’s a valid log.
block_timestamp: Option<U64>
Unix timestamp of when the first transaction in the block was processed (i.e., when the block was opened).
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
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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