pub struct OrderBookOptions {
pub journaling: bool,
pub snapshot: Option<Snapshot>,
pub replay_logs: Option<Vec<JournalLog>>,
}Expand description
Configuration options for initializing a new OrderBook.
§Fields
journaling: Iftrue, the order book will return a journal log for each operations. Defaults tofalse.snapshot: A previously capturedSnapshotrepresenting the full state of an order book at a given point in time.replay_logs: A vector ofJournalLogentries to replay. Logs should ideally be in chronological order (op_idascending), butreplay_logswill sort them internally.
Fields§
§journaling: bool§snapshot: Option<Snapshot>§replay_logs: Option<Vec<JournalLog>>Trait Implementations§
Source§impl Clone for OrderBookOptions
impl Clone for OrderBookOptions
Source§fn clone(&self) -> OrderBookOptions
fn clone(&self) -> OrderBookOptions
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 OrderBookOptions
impl Debug for OrderBookOptions
Source§impl Default for OrderBookOptions
impl Default for OrderBookOptions
Source§fn default() -> OrderBookOptions
fn default() -> OrderBookOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OrderBookOptions
impl RefUnwindSafe for OrderBookOptions
impl Send for OrderBookOptions
impl Sync for OrderBookOptions
impl Unpin for OrderBookOptions
impl UnwindSafe for OrderBookOptions
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