pub struct SimulateQueryOptions {
pub estimate_gas_unit_price: bool,
pub estimate_max_gas_amount: bool,
pub estimate_prioritized_gas_unit_price: bool,
}Expand description
Query options for the fullnode /transactions/simulate endpoint.
These options are passed as query parameters to the simulate API.
When set to true, the node may override transaction gas fields or use
estimated values for simulation (see Aptos API docs).
Fields§
§estimate_gas_unit_price: boolWhen true, the gas unit price in the transaction may be ignored and the estimated gas unit price used instead.
estimate_max_gas_amount: boolWhen true, the max gas amount in the transaction may be ignored and the maximum possible gas used instead.
estimate_prioritized_gas_unit_price: boolWhen true, use a higher prioritized gas unit price for simulation.
Implementations§
Source§impl SimulateQueryOptions
impl SimulateQueryOptions
Sourcepub fn estimate_gas_unit_price(self, value: bool) -> Self
pub fn estimate_gas_unit_price(self, value: bool) -> Self
Requests the node to estimate gas unit price for simulation.
Sourcepub fn estimate_max_gas_amount(self, value: bool) -> Self
pub fn estimate_max_gas_amount(self, value: bool) -> Self
Requests the node to estimate max gas amount for simulation.
Sourcepub fn estimate_prioritized_gas_unit_price(self, value: bool) -> Self
pub fn estimate_prioritized_gas_unit_price(self, value: bool) -> Self
Requests the node to use prioritized gas unit price for simulation.
Trait Implementations§
Source§impl Clone for SimulateQueryOptions
impl Clone for SimulateQueryOptions
Source§fn clone(&self) -> SimulateQueryOptions
fn clone(&self) -> SimulateQueryOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SimulateQueryOptions
impl Debug for SimulateQueryOptions
Source§impl Default for SimulateQueryOptions
impl Default for SimulateQueryOptions
Source§fn default() -> SimulateQueryOptions
fn default() -> SimulateQueryOptions
Returns the “default value” for a type. Read more
Source§impl PartialEq for SimulateQueryOptions
impl PartialEq for SimulateQueryOptions
Source§fn eq(&self, other: &SimulateQueryOptions) -> bool
fn eq(&self, other: &SimulateQueryOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SimulateQueryOptions
impl Eq for SimulateQueryOptions
impl StructuralPartialEq for SimulateQueryOptions
Auto Trait Implementations§
impl Freeze for SimulateQueryOptions
impl RefUnwindSafe for SimulateQueryOptions
impl Send for SimulateQueryOptions
impl Sync for SimulateQueryOptions
impl Unpin for SimulateQueryOptions
impl UnsafeUnpin for SimulateQueryOptions
impl UnwindSafe for SimulateQueryOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.