#[non_exhaustive]pub struct TradingConstraints {
pub allowed_order_types: Vec<OrderType>,
pub price_filter: Option<PriceFilter>,
pub lot_size: Option<LotSizeFilter>,
pub market_lot_size: Option<LotSizeFilter>,
pub notional: Option<NotionalConstraints>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.allowed_order_types: Vec<OrderType>§price_filter: Option<PriceFilter>§lot_size: Option<LotSizeFilter>§market_lot_size: Option<LotSizeFilter>§notional: Option<NotionalConstraints>Implementations§
Trait Implementations§
Source§impl Clone for TradingConstraints
impl Clone for TradingConstraints
Source§fn clone(&self) -> TradingConstraints
fn clone(&self) -> TradingConstraints
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 moreSource§impl Debug for TradingConstraints
impl Debug for TradingConstraints
Source§impl Default for TradingConstraints
impl Default for TradingConstraints
Source§fn default() -> TradingConstraints
fn default() -> TradingConstraints
Returns the “default value” for a type. Read more
Source§impl PartialEq for TradingConstraints
impl PartialEq for TradingConstraints
Source§fn eq(&self, other: &TradingConstraints) -> bool
fn eq(&self, other: &TradingConstraints) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for TradingConstraints
Auto Trait Implementations§
impl Freeze for TradingConstraints
impl RefUnwindSafe for TradingConstraints
impl Send for TradingConstraints
impl Sync for TradingConstraints
impl Unpin for TradingConstraints
impl UnsafeUnpin for TradingConstraints
impl UnwindSafe for TradingConstraints
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