pub struct ExecutionEngineConfig {
pub load_cache: bool,
pub manage_own_order_books: bool,
pub snapshot_orders: bool,
pub snapshot_positions: bool,
pub snapshot_positions_interval_secs: Option<f64>,
pub debug: bool,
}
Expand description
Configuration for ExecutionEngine
instances.
Fields§
§load_cache: bool
If the cache should be loaded on initialization.
manage_own_order_books: bool
If the execution engine should maintain own/user order books based on commands and events.
snapshot_orders: bool
If order state snapshot lists are persisted to a backing database. Snapshots will be taken at every order state update (when events are applied).
snapshot_positions: bool
If position state snapshot lists are persisted to a backing database. Snapshots will be taken at position opened, changed and closed (when events are applied).
snapshot_positions_interval_secs: Option<f64>
The interval (seconds) at which additional position state snapshots are persisted. If None then no additional snapshots will be taken.
debug: bool
If debug mode is active (will provide extra debug logging).
Trait Implementations§
Source§impl Clone for ExecutionEngineConfig
impl Clone for ExecutionEngineConfig
Source§fn clone(&self) -> ExecutionEngineConfig
fn clone(&self) -> ExecutionEngineConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ExecutionEngineConfig
impl Debug for ExecutionEngineConfig
Source§impl Default for ExecutionEngineConfig
impl Default for ExecutionEngineConfig
Source§impl<'de> Deserialize<'de> for ExecutionEngineConfig
impl<'de> Deserialize<'de> for ExecutionEngineConfig
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 ExecutionEngineConfig
impl RefUnwindSafe for ExecutionEngineConfig
impl Send for ExecutionEngineConfig
impl Sync for ExecutionEngineConfig
impl Unpin for ExecutionEngineConfig
impl UnwindSafe for ExecutionEngineConfig
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