Struct sputnikvm::HeaderParams
source · pub struct HeaderParams {
pub beneficiary: Address,
pub timestamp: u64,
pub number: U256,
pub difficulty: U256,
pub gas_limit: Gas,
}
Expand description
Block header.
Fields
beneficiary: Address
Block coinbase, the address that mines the block.
timestamp: u64
Block timestamp.
number: U256
The current block number.
difficulty: U256
Difficulty of the block.
gas_limit: Gas
Total block gas limit.
Trait Implementations
sourceimpl Clone for HeaderParams
impl Clone for HeaderParams
sourcefn clone(&self) -> HeaderParams
fn clone(&self) -> HeaderParams
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 moresourceimpl Debug for HeaderParams
impl Debug for HeaderParams
sourceimpl<'a> From<&'a Header> for HeaderParams
impl<'a> From<&'a Header> for HeaderParams
sourcefn from(val: &'a Header) -> HeaderParams
fn from(val: &'a Header) -> HeaderParams
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for HeaderParams
impl Send for HeaderParams
impl Sync for HeaderParams
impl Unpin for HeaderParams
impl UnwindSafe for HeaderParams
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more