pub struct Log {
pub removed: Option<bool>,
pub log_index: Option<LogIndex>,
pub transaction_index: Option<TransactionIndex>,
pub transaction_hash: Option<Hash>,
pub block_hash: Option<Hash>,
pub block_number: Option<BlockNumber>,
pub address: Option<Address>,
pub data: Option<Data>,
pub topics: ArrayVec<Option<LogArgument>, 4>,
}Expand description
Log object
Fields§
§removed: Option<bool>The boolean value indicating if the event was removed from the blockchain due to a chain reorganization. True if the log was removed. False if it is a valid log.
log_index: Option<LogIndex>The integer identifying the index of the event within the block’s list of events.
transaction_index: Option<TransactionIndex>The integer index of the transaction within the block’s list of transactions.
transaction_hash: Option<Hash>The hash of the transaction that triggered the event.
block_hash: Option<Hash>The hash of the block in which the event was included.
block_number: Option<BlockNumber>The block number in which the event was included.
address: Option<Address>The contract address from which the event originated.
data: Option<Data>The non-indexed data that was emitted along with the event.
topics: ArrayVec<Option<LogArgument>, 4>An array of 32-byte data fields containing indexed event parameters.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Log
impl<'de> Deserialize<'de> for Log
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl FromArrow for Log
impl FromArrow for Log
source§fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
Converts to the Vector type from the ArrowBatch type.
impl Eq for Log
impl StructuralPartialEq for Log
Auto Trait Implementations§
impl Freeze for Log
impl RefUnwindSafe for Log
impl Send for Log
impl Sync for Log
impl Unpin 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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§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.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