pub struct SimulationOptions {
pub cpu_instructions: u64,
pub auth_mode: Option<AuthMode>,
}
Expand description
Contains configuration for how resources will be calculated when simulating transactions.
Fields§
§cpu_instructions: u64
Allow this many extra instructions when budgeting resources.
auth_mode: Option<AuthMode>
The auth mode to apply to the simulation, if None enforce if auth entries are present, record otherwise
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