Struct eventify_primitives::block::IndexedBlock
source · pub struct IndexedBlock(/* private fields */);Implementations§
source§impl IndexedBlock
impl IndexedBlock
pub fn hash(&self) -> Option<H256>
pub fn parent_hash(&self) -> H256
pub fn uncles_hash(&self) -> H256
pub fn state_root(&self) -> H256
pub fn transactions_root(&self) -> H256
pub fn receipts_root(&self) -> H256
pub fn number(&self) -> Option<U64>
pub fn gas_used(&self) -> U256
pub fn gas_limit(&self) -> U256
pub fn extra_data(&self) -> &Bytes
pub fn logs_bloom(&self) -> Option<Bloom>
pub fn timestamp(&self) -> U256
pub fn difficulty(&self) -> U256
pub fn total_difficulty(&self) -> Option<U256>
pub fn seal_fields(&self) -> &Vec<Bytes>
pub fn uncles(&self) -> &Vec<H256>
pub fn size(&self) -> Option<U256>
pub fn mix_hash(&self) -> Option<H256>
pub fn nonce(&self) -> Option<H64>
pub fn base_fee_per_gas(&self) -> Option<U256>
pub fn blob_gas_used(&self) -> Option<U256>
pub fn excess_blob_gas(&self) -> Option<U256>
pub fn withdrawals_root(&self) -> Option<H256>
pub fn withdrawals(&self) -> &Option<Vec<Withdrawal>>
Trait Implementations§
source§impl Clone for IndexedBlock
impl Clone for IndexedBlock
source§fn clone(&self) -> IndexedBlock
fn clone(&self) -> IndexedBlock
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 IndexedBlock
impl Debug for IndexedBlock
source§impl Default for IndexedBlock
impl Default for IndexedBlock
source§fn default() -> IndexedBlock
fn default() -> IndexedBlock
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for IndexedBlock
impl<'de> Deserialize<'de> for IndexedBlock
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 From<Block<Transaction>> for IndexedBlock
impl From<Block<Transaction>> for IndexedBlock
source§fn from(block: Block<Transaction>) -> Self
fn from(block: Block<Transaction>) -> Self
Converts to this type from the input type.
source§impl<'a, R: Row> FromRow<'a, R> for IndexedBlock
impl<'a, R: Row> FromRow<'a, R> for IndexedBlock
source§impl PartialEq for IndexedBlock
impl PartialEq for IndexedBlock
source§fn eq(&self, other: &IndexedBlock) -> bool
fn eq(&self, other: &IndexedBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for IndexedBlock
impl Serialize for IndexedBlock
source§impl<'__s> ToSchema<'__s> for IndexedBlock
impl<'__s> ToSchema<'__s> for IndexedBlock
impl Eq for IndexedBlock
impl Insertable for IndexedBlock
impl StructuralEq for IndexedBlock
impl StructuralPartialEq for IndexedBlock
Auto Trait Implementations§
impl RefUnwindSafe for IndexedBlock
impl Send for IndexedBlock
impl Sync for IndexedBlock
impl Unpin for IndexedBlock
impl UnwindSafe for IndexedBlock
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.