pub struct Log {
pub transaction_hash: Vec<u8>,
pub transaction_from: Address,
pub transaction_gas_price: BigInt,
pub log_index: u64,
pub block_number: u64,
pub block_timestamp: u64,
pub address: Address,
pub topics: Vec<Vec<u8>>,
pub data: Vec<u8>,
}Expand description
Trigger data passed to native handlers. Represents an Ethereum log entry with transaction/block context. In production, this is populated from graph-node’s trigger data.
Fields§
§transaction_hash: Vec<u8>§transaction_from: Address§transaction_gas_price: BigInt§log_index: u64§block_number: u64§block_timestamp: u64§address: Address§topics: Vec<Vec<u8>>Raw log topics
data: Vec<u8>Raw log data
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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