pub struct RpcLog {
pub removed: bool,
pub log_index: Option<String>,
pub transaction_index: Option<String>,
pub transaction_hash: Option<String>,
pub block_hash: Option<String>,
pub block_number: Option<String>,
pub address: String,
pub data: String,
pub topics: Vec<String>,
}Expand description
Log entry in standard Ethereum JSON-RPC format.
This struct represents an event log returned by the eth_getLogs RPC method.
Field names use camelCase to match the Ethereum JSON-RPC specification.
Note: log_index, transaction_index, transaction_hash, block_hash, and
block_number can be null for pending logs, but are always present for confirmed logs.
Fields§
§removed: boolWhether the log was removed due to chain reorganization.
log_index: Option<String>Index position of the log in the block (hex string).
transaction_index: Option<String>Index position of the transaction in the block (hex string).
transaction_hash: Option<String>Hash of the transaction that generated this log.
block_hash: Option<String>Hash of the block containing this log.
block_number: Option<String>Block number containing this log (hex string).
address: StringAddress of the contract that emitted the event.
data: StringNon-indexed event parameters (hex-encoded bytes).
topics: Vec<String>Indexed event parameters.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RpcLog
impl<'de> Deserialize<'de> for RpcLog
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>,
Auto Trait Implementations§
impl Freeze for RpcLog
impl RefUnwindSafe for RpcLog
impl Send for RpcLog
impl Sync for RpcLog
impl Unpin for RpcLog
impl UnwindSafe for RpcLog
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
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>
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>
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