pub struct OrderMatchingEngineConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OrderMatchingEngineConfigBuilder<S>
impl<S: State> OrderMatchingEngineConfigBuilder<S>
Sourcepub fn build(self) -> OrderMatchingEngineConfigwhere
S: IsComplete,
pub fn build(self) -> OrderMatchingEngineConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn bar_execution(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetBarExecution<S>>where
S::BarExecution: IsUnset,
pub fn bar_execution(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetBarExecution<S>>where
S::BarExecution: IsUnset,
Sourcepub fn maybe_bar_execution(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetBarExecution<S>>where
S::BarExecution: IsUnset,
pub fn maybe_bar_execution(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetBarExecution<S>>where
S::BarExecution: IsUnset,
Sourcepub fn bar_adaptive_high_low_ordering(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetBarAdaptiveHighLowOrdering<S>>where
S::BarAdaptiveHighLowOrdering: IsUnset,
pub fn bar_adaptive_high_low_ordering(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetBarAdaptiveHighLowOrdering<S>>where
S::BarAdaptiveHighLowOrdering: IsUnset,
Sourcepub fn maybe_bar_adaptive_high_low_ordering(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetBarAdaptiveHighLowOrdering<S>>where
S::BarAdaptiveHighLowOrdering: IsUnset,
pub fn maybe_bar_adaptive_high_low_ordering(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetBarAdaptiveHighLowOrdering<S>>where
S::BarAdaptiveHighLowOrdering: IsUnset,
Sourcepub fn trade_execution(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetTradeExecution<S>>where
S::TradeExecution: IsUnset,
pub fn trade_execution(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetTradeExecution<S>>where
S::TradeExecution: IsUnset,
Sourcepub fn maybe_trade_execution(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetTradeExecution<S>>where
S::TradeExecution: IsUnset,
pub fn maybe_trade_execution(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetTradeExecution<S>>where
S::TradeExecution: IsUnset,
Sourcepub fn liquidity_consumption(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetLiquidityConsumption<S>>where
S::LiquidityConsumption: IsUnset,
pub fn liquidity_consumption(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetLiquidityConsumption<S>>where
S::LiquidityConsumption: IsUnset,
Sourcepub fn maybe_liquidity_consumption(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetLiquidityConsumption<S>>where
S::LiquidityConsumption: IsUnset,
pub fn maybe_liquidity_consumption(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetLiquidityConsumption<S>>where
S::LiquidityConsumption: IsUnset,
Sourcepub fn reject_stop_orders(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetRejectStopOrders<S>>where
S::RejectStopOrders: IsUnset,
pub fn reject_stop_orders(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetRejectStopOrders<S>>where
S::RejectStopOrders: IsUnset,
Sourcepub fn maybe_reject_stop_orders(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetRejectStopOrders<S>>where
S::RejectStopOrders: IsUnset,
pub fn maybe_reject_stop_orders(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetRejectStopOrders<S>>where
S::RejectStopOrders: IsUnset,
Sourcepub fn support_gtd_orders(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetSupportGtdOrders<S>>where
S::SupportGtdOrders: IsUnset,
pub fn support_gtd_orders(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetSupportGtdOrders<S>>where
S::SupportGtdOrders: IsUnset,
Sourcepub fn maybe_support_gtd_orders(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetSupportGtdOrders<S>>where
S::SupportGtdOrders: IsUnset,
pub fn maybe_support_gtd_orders(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetSupportGtdOrders<S>>where
S::SupportGtdOrders: IsUnset,
Sourcepub fn support_contingent_orders(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetSupportContingentOrders<S>>where
S::SupportContingentOrders: IsUnset,
pub fn support_contingent_orders(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetSupportContingentOrders<S>>where
S::SupportContingentOrders: IsUnset,
Sourcepub fn maybe_support_contingent_orders(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetSupportContingentOrders<S>>where
S::SupportContingentOrders: IsUnset,
pub fn maybe_support_contingent_orders(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetSupportContingentOrders<S>>where
S::SupportContingentOrders: IsUnset,
Sourcepub fn use_position_ids(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUsePositionIds<S>>where
S::UsePositionIds: IsUnset,
pub fn use_position_ids(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUsePositionIds<S>>where
S::UsePositionIds: IsUnset,
Sourcepub fn maybe_use_position_ids(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUsePositionIds<S>>where
S::UsePositionIds: IsUnset,
pub fn maybe_use_position_ids(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUsePositionIds<S>>where
S::UsePositionIds: IsUnset,
Sourcepub fn use_random_ids(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUseRandomIds<S>>where
S::UseRandomIds: IsUnset,
pub fn use_random_ids(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUseRandomIds<S>>where
S::UseRandomIds: IsUnset,
Sourcepub fn maybe_use_random_ids(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUseRandomIds<S>>where
S::UseRandomIds: IsUnset,
pub fn maybe_use_random_ids(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUseRandomIds<S>>where
S::UseRandomIds: IsUnset,
Sourcepub fn use_reduce_only(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUseReduceOnly<S>>where
S::UseReduceOnly: IsUnset,
pub fn use_reduce_only(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUseReduceOnly<S>>where
S::UseReduceOnly: IsUnset,
Sourcepub fn maybe_use_reduce_only(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUseReduceOnly<S>>where
S::UseReduceOnly: IsUnset,
pub fn maybe_use_reduce_only(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUseReduceOnly<S>>where
S::UseReduceOnly: IsUnset,
Sourcepub fn use_market_order_acks(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUseMarketOrderAcks<S>>where
S::UseMarketOrderAcks: IsUnset,
pub fn use_market_order_acks(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetUseMarketOrderAcks<S>>where
S::UseMarketOrderAcks: IsUnset,
Sourcepub fn maybe_use_market_order_acks(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUseMarketOrderAcks<S>>where
S::UseMarketOrderAcks: IsUnset,
pub fn maybe_use_market_order_acks(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetUseMarketOrderAcks<S>>where
S::UseMarketOrderAcks: IsUnset,
Sourcepub fn queue_position(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetQueuePosition<S>>where
S::QueuePosition: IsUnset,
pub fn queue_position(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetQueuePosition<S>>where
S::QueuePosition: IsUnset,
Sourcepub fn maybe_queue_position(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetQueuePosition<S>>where
S::QueuePosition: IsUnset,
pub fn maybe_queue_position(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetQueuePosition<S>>where
S::QueuePosition: IsUnset,
Sourcepub fn oto_full_trigger(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetOtoFullTrigger<S>>where
S::OtoFullTrigger: IsUnset,
pub fn oto_full_trigger(
self,
value: bool,
) -> OrderMatchingEngineConfigBuilder<SetOtoFullTrigger<S>>where
S::OtoFullTrigger: IsUnset,
Sourcepub fn maybe_oto_full_trigger(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetOtoFullTrigger<S>>where
S::OtoFullTrigger: IsUnset,
pub fn maybe_oto_full_trigger(
self,
value: Option<bool>,
) -> OrderMatchingEngineConfigBuilder<SetOtoFullTrigger<S>>where
S::OtoFullTrigger: IsUnset,
Sourcepub fn price_protection_points(
self,
value: u32,
) -> OrderMatchingEngineConfigBuilder<SetPriceProtectionPoints<S>>where
S::PriceProtectionPoints: IsUnset,
pub fn price_protection_points(
self,
value: u32,
) -> OrderMatchingEngineConfigBuilder<SetPriceProtectionPoints<S>>where
S::PriceProtectionPoints: IsUnset,
Sourcepub fn maybe_price_protection_points(
self,
value: Option<u32>,
) -> OrderMatchingEngineConfigBuilder<SetPriceProtectionPoints<S>>where
S::PriceProtectionPoints: IsUnset,
pub fn maybe_price_protection_points(
self,
value: Option<u32>,
) -> OrderMatchingEngineConfigBuilder<SetPriceProtectionPoints<S>>where
S::PriceProtectionPoints: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for OrderMatchingEngineConfigBuilder<S>
impl<S> RefUnwindSafe for OrderMatchingEngineConfigBuilder<S>
impl<S> Send for OrderMatchingEngineConfigBuilder<S>
impl<S> Sync for OrderMatchingEngineConfigBuilder<S>
impl<S> Unpin for OrderMatchingEngineConfigBuilder<S>
impl<S> UnsafeUnpin for OrderMatchingEngineConfigBuilder<S>
impl<S> UnwindSafe for OrderMatchingEngineConfigBuilder<S>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more