pub struct Env {
pub author: Address,
pub difficulty: Uint,
pub gas_limit: Uint,
pub number: Uint,
pub timestamp: Uint,
pub base_fee: Option<Uint>,
}
Expand description
Vm environment.
Fields
Address.
difficulty: Uint
Difficulty
gas_limit: Uint
Gas limit.
number: Uint
Number.
timestamp: Uint
Timestamp.
base_fee: Option<Uint>
Block base fee.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Env
impl<'de> Deserialize<'de> for Env
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 Env
Auto Trait Implementations
impl RefUnwindSafe for Env
impl Send for Env
impl Sync for Env
impl Unpin for Env
impl UnwindSafe for Env
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