[][src]Struct ethcontract::prelude::EventMetadata

pub struct EventMetadata {
    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>,
}

Additional metadata from the log for the event.

Fields

block_hash: H256

The hash of the block where the log was produced.

block_number: u64

The number of the block where the log was produced.

transaction_hash: H256

The hash of the transaction this log belongs to.

transaction_index: usize

The block index of the transaction this log belongs to.

log_index: usize

The 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

impl Clone for EventMetadata[src]

impl Debug for EventMetadata[src]

impl Eq for EventMetadata[src]

impl PartialEq<EventMetadata> for EventMetadata[src]

impl StructuralEq for EventMetadata[src]

impl StructuralPartialEq for EventMetadata[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,