Struct common_types::log_entry::LocalizedLogEntry
source · [−]pub struct LocalizedLogEntry {
pub entry: LogEntry,
pub block_hash: H256,
pub block_number: BlockNumber,
pub transaction_hash: H256,
pub transaction_index: usize,
pub log_index: usize,
pub transaction_log_index: usize,
}
Expand description
Log localized in a blockchain.
Fields
entry: LogEntry
Plain log entry.
block_hash: H256
Block in which this log was created.
block_number: BlockNumber
Block number.
transaction_hash: H256
Hash of transaction in which this log was created.
transaction_index: usize
Index of transaction within block.
log_index: usize
Log position in the block.
transaction_log_index: usize
Log position in the transaction.
Methods from Deref<Target = LogEntry>
Trait Implementations
sourceimpl Clone for LocalizedLogEntry
impl Clone for LocalizedLogEntry
sourcefn clone(&self) -> LocalizedLogEntry
fn clone(&self) -> LocalizedLogEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for LocalizedLogEntry
impl Debug for LocalizedLogEntry
sourceimpl Default for LocalizedLogEntry
impl Default for LocalizedLogEntry
sourcefn default() -> LocalizedLogEntry
fn default() -> LocalizedLogEntry
Returns the “default value” for a type. Read more
sourceimpl Deref for LocalizedLogEntry
impl Deref for LocalizedLogEntry
sourceimpl PartialEq<LocalizedLogEntry> for LocalizedLogEntry
impl PartialEq<LocalizedLogEntry> for LocalizedLogEntry
sourcefn eq(&self, other: &LocalizedLogEntry) -> bool
fn eq(&self, other: &LocalizedLogEntry) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &LocalizedLogEntry) -> bool
fn ne(&self, other: &LocalizedLogEntry) -> bool
This method tests for !=
.
impl StructuralPartialEq for LocalizedLogEntry
Auto Trait Implementations
impl RefUnwindSafe for LocalizedLogEntry
impl Send for LocalizedLogEntry
impl Sync for LocalizedLogEntry
impl Unpin for LocalizedLogEntry
impl UnwindSafe for LocalizedLogEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more