Struct ethcontract::contract::EventMetadata
source · pub struct EventMetadata {
pub address: H160,
pub block_hash: H256,
pub block_number: u64,
pub transaction_hash: H256,
pub transaction_index: usize,
pub log_index: usize,
pub transaction_log_index: Option<usize>,
pub log_type: Option<String>,
}Expand description
Additional metadata from the log for the event.
Fields§
§address: H160From which this event originated from
block_hash: H256The hash of the block where the log was produced.
block_number: u64The number of the block where the log was produced.
transaction_hash: H256The hash of the transaction this log belongs to.
transaction_index: usizeThe block index of the transaction this log belongs to.
log_index: usizeThe index of the log in the block.
transaction_log_index: Option<usize>The log index in the transaction this log belongs to. This property is non-standard.
log_type: Option<String>The log type. Note that this property is non-standard but is supported by Parity nodes.
Trait Implementations§
source§impl Clone for EventMetadata
impl Clone for EventMetadata
source§fn clone(&self) -> EventMetadata
fn clone(&self) -> EventMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for EventMetadata
impl Debug for EventMetadata
source§impl Default for EventMetadata
impl Default for EventMetadata
source§fn default() -> EventMetadata
fn default() -> EventMetadata
Returns the “default value” for a type. Read more
source§impl PartialEq for EventMetadata
impl PartialEq for EventMetadata
source§fn eq(&self, other: &EventMetadata) -> bool
fn eq(&self, other: &EventMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for EventMetadata
impl StructuralPartialEq for EventMetadata
Auto Trait Implementations§
impl Freeze for EventMetadata
impl RefUnwindSafe for EventMetadata
impl Send for EventMetadata
impl Sync for EventMetadata
impl Unpin for EventMetadata
impl UnwindSafe for EventMetadata
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<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.