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_bin_array<B: List<Item = [u8]> + 'static, U>(
batch: &ArrowBatch,
) -> Vec<Self>
fn from_arrow_bin_array<B: List<Item = [u8]> + 'static, U>( batch: &ArrowBatch, ) -> Vec<Self>
Converts to the Vector type from the ArrowBatch type.
B is the type of binary array used to downcast since we use both binary views and
binary arrays
Source§fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
Default implementation that uses the binary array type.
IPC is written with regular binary arrays.
Named ‘from_arrow’ for backwards compatibility.
Source§fn from_arrow_bin_view_array(batch: &ArrowBatch) -> Vec<Self>
fn from_arrow_bin_view_array(batch: &ArrowBatch) -> Vec<Self>
An additional method that uses the binary view array type.
This is to be able to reuse the trait server side where Binary Views are
used instead.
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§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