pub struct SimulationOptions {
pub estimate_gas_only: bool,
pub sequence_number_override: Option<u64>,
pub gas_unit_price_override: Option<u64>,
pub max_gas_amount_override: Option<u64>,
}Expand description
Options for simulation.
Fields§
§estimate_gas_only: boolWhether to estimate gas only (faster).
sequence_number_override: Option<u64>Override the sender’s sequence number.
gas_unit_price_override: Option<u64>Override the gas unit price.
max_gas_amount_override: Option<u64>Override the max gas amount.
Implementations§
Source§impl SimulationOptions
impl SimulationOptions
Sourcepub fn estimate_gas_only(self) -> Self
pub fn estimate_gas_only(self) -> Self
Sets gas-only estimation mode.
Sourcepub fn with_sequence_number(self, seq: u64) -> Self
pub fn with_sequence_number(self, seq: u64) -> Self
Overrides the sequence number.
Sourcepub fn with_gas_unit_price(self, price: u64) -> Self
pub fn with_gas_unit_price(self, price: u64) -> Self
Overrides the gas unit price.
Sourcepub fn with_max_gas_amount(self, amount: u64) -> Self
pub fn with_max_gas_amount(self, amount: u64) -> Self
Overrides the max gas amount.
Trait Implementations§
Source§impl Clone for SimulationOptions
impl Clone for SimulationOptions
Source§fn clone(&self) -> SimulationOptions
fn clone(&self) -> SimulationOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimulationOptions
impl Debug for SimulationOptions
Source§impl Default for SimulationOptions
impl Default for SimulationOptions
Source§fn default() -> SimulationOptions
fn default() -> SimulationOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SimulationOptions
impl RefUnwindSafe for SimulationOptions
impl Send for SimulationOptions
impl Sync for SimulationOptions
impl Unpin for SimulationOptions
impl UnwindSafe for SimulationOptions
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