pub struct SimulationOptions {
pub duration: u64,
pub total_users: u64,
pub market_volatility: Decimal,
pub interval_type: SimulationInterval,
pub transaction_fee: Option<Decimal>,
}
Expand description
Input parameters for a simulation.
Fields§
§duration: u64
Duration of the simulation, depending on the interval type.
total_users: u64
Number of users in the simulation.
market_volatility: Decimal
Volatility level. 0.0 is no volatility, 1.0 is maximum volatility.
interval_type: SimulationInterval
Interval type for the simulation.
transaction_fee: Option<Decimal>
Transaction fee for each trade.
Trait Implementations§
Source§impl Debug for SimulationOptions
impl Debug for SimulationOptions
Source§impl<'de> Deserialize<'de> for SimulationOptions
impl<'de> Deserialize<'de> for SimulationOptions
Source§fn 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
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