#[non_exhaustive]pub struct VmMessageArgs {
pub now: u32,
pub rand_seed: HashBytes,
pub override_gas_params: Option<GasParams>,
pub override_balance: Option<CurrencyCollection>,
pub is_special: Option<bool>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.now: u32Current unix timestamp.
Default: current timestamp on non-wasm platforms and 0 on wasm.
rand_seed: HashBytesRandom seed.
Default: HashBytes::ZERO.
override_gas_params: Option<GasParams>Custom gas limits for execution.
Default: max gas.
override_balance: Option<CurrencyCollection>Set custom account balance.
Default: None.
is_special: Option<bool>Override whether the account is specia.
Default: None (uses config).
Trait Implementations§
Source§impl Debug for VmMessageArgs
impl Debug for VmMessageArgs
Auto Trait Implementations§
impl Freeze for VmMessageArgs
impl !RefUnwindSafe for VmMessageArgs
impl !Send for VmMessageArgs
impl !Sync for VmMessageArgs
impl Unpin for VmMessageArgs
impl UnsafeUnpin for VmMessageArgs
impl !UnwindSafe for VmMessageArgs
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