pub struct InstrumentConfig {
pub price_divisor: f64,
pub decimal_places: u32,
}Expand description
Configuration for an instrument’s price scaling
Fields§
§price_divisor: f64Divisor to convert raw tick price to actual price
decimal_places: u32Number of decimal places for the instrument
Implementations§
Trait Implementations§
Source§impl Clone for InstrumentConfig
impl Clone for InstrumentConfig
Source§fn clone(&self) -> InstrumentConfig
fn clone(&self) -> InstrumentConfig
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 moreimpl Copy for InstrumentConfig
Source§impl Debug for InstrumentConfig
impl Debug for InstrumentConfig
Source§impl Default for InstrumentConfig
impl Default for InstrumentConfig
Source§impl PartialEq for InstrumentConfig
impl PartialEq for InstrumentConfig
Source§fn eq(&self, other: &InstrumentConfig) -> bool
fn eq(&self, other: &InstrumentConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InstrumentConfig
Auto Trait Implementations§
impl Freeze for InstrumentConfig
impl RefUnwindSafe for InstrumentConfig
impl Send for InstrumentConfig
impl Sync for InstrumentConfig
impl Unpin for InstrumentConfig
impl UnsafeUnpin for InstrumentConfig
impl UnwindSafe for InstrumentConfig
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