Struct hypersync_client::simple_types::Block
source · pub struct Block {Show 28 fields
pub number: Option<u64>,
pub hash: Option<Hash>,
pub parent_hash: Option<Hash>,
pub nonce: Option<Nonce>,
pub sha3_uncles: Option<Hash>,
pub logs_bloom: Option<BloomFilter>,
pub transactions_root: Option<Hash>,
pub state_root: Option<Hash>,
pub receipts_root: Option<Hash>,
pub miner: Option<Address>,
pub difficulty: Option<Quantity>,
pub total_difficulty: Option<Quantity>,
pub extra_data: Option<Data>,
pub size: Option<Quantity>,
pub gas_limit: Option<Quantity>,
pub gas_used: Option<Quantity>,
pub timestamp: Option<Quantity>,
pub uncles: Option<Vec<Hash>>,
pub base_fee_per_gas: Option<Quantity>,
pub blob_gas_used: Option<Quantity>,
pub excess_blob_gas: Option<Quantity>,
pub parent_beacon_block_root: Option<Hash>,
pub withdrawals_root: Option<Hash>,
pub withdrawals: Option<Vec<Withdrawal>>,
pub l1_block_number: Option<BlockNumber>,
pub send_count: Option<Quantity>,
pub send_root: Option<Hash>,
pub mix_hash: Option<Hash>,
}Fields§
§number: Option<u64>§hash: Option<Hash>§parent_hash: Option<Hash>§nonce: Option<Nonce>§sha3_uncles: Option<Hash>§logs_bloom: Option<BloomFilter>§transactions_root: Option<Hash>§state_root: Option<Hash>§receipts_root: Option<Hash>§miner: Option<Address>§difficulty: Option<Quantity>§total_difficulty: Option<Quantity>§extra_data: Option<Data>§size: Option<Quantity>§gas_limit: Option<Quantity>§gas_used: Option<Quantity>§timestamp: Option<Quantity>§uncles: Option<Vec<Hash>>§base_fee_per_gas: Option<Quantity>§blob_gas_used: Option<Quantity>§excess_blob_gas: Option<Quantity>§parent_beacon_block_root: Option<Hash>§withdrawals_root: Option<Hash>§withdrawals: Option<Vec<Withdrawal>>§l1_block_number: Option<BlockNumber>§send_count: Option<Quantity>§send_root: Option<Hash>§mix_hash: Option<Hash>Trait Implementations§
source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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 Block
impl FromArrow for Block
fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
source§impl PartialEq for Block
impl PartialEq for Block
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
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<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