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 UnsafeUnpin for RpcLog
impl UnwindSafe for RpcLog
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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