pub struct Genesis {
pub seal: Seal,
pub difficulty: Uint,
pub author: Option<Address>,
pub timestamp: Option<Uint>,
pub parent_hash: Option<H256>,
pub gas_limit: Uint,
pub transactions_root: Option<H256>,
pub receipts_root: Option<H256>,
pub state_root: Option<H256>,
pub gas_used: Option<Uint>,
pub extra_data: Option<Bytes>,
pub base_fee_per_gas: Option<Uint>,
}
Expand description
Spec genesis.
Fields
seal: Seal
Seal.
difficulty: Uint
Difficulty.
Block author, defaults to 0.
timestamp: Option<Uint>
Block timestamp, defaults to 0.
parent_hash: Option<H256>
Parent hash, defaults to 0.
gas_limit: Uint
Gas limit.
transactions_root: Option<H256>
Transactions root.
receipts_root: Option<H256>
Receipts root.
state_root: Option<H256>
State root.
gas_used: Option<Uint>
Gas used.
extra_data: Option<Bytes>
Extra data.
base_fee_per_gas: Option<Uint>
Base fee.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Genesis
impl<'de> Deserialize<'de> for Genesis
sourcefn 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
impl StructuralPartialEq for Genesis
Auto Trait Implementations
impl RefUnwindSafe for Genesis
impl Send for Genesis
impl Sync for Genesis
impl Unpin for Genesis
impl UnwindSafe for Genesis
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