Skip to main content

OrderMatchingEngineConfigBuilder

Struct OrderMatchingEngineConfigBuilder 

Source
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>

Source

pub fn build(self) -> OrderMatchingEngineConfig
where S: IsComplete,

Finish building and return the requested object

Source

pub fn bar_execution( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetBarExecution<S>>
where S::BarExecution: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_bar_execution( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetBarExecution<S>>
where S::BarExecution: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn bar_adaptive_high_low_ordering( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetBarAdaptiveHighLowOrdering<S>>
where S::BarAdaptiveHighLowOrdering: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_bar_adaptive_high_low_ordering( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetBarAdaptiveHighLowOrdering<S>>
where S::BarAdaptiveHighLowOrdering: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn trade_execution( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetTradeExecution<S>>
where S::TradeExecution: IsUnset,

Optional (Some / Option setters). Default: true.

Source

pub fn maybe_trade_execution( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetTradeExecution<S>>
where S::TradeExecution: IsUnset,

Optional (Some / Option setters). Default: true.

Source

pub fn liquidity_consumption( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetLiquidityConsumption<S>>
where S::LiquidityConsumption: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_liquidity_consumption( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetLiquidityConsumption<S>>
where S::LiquidityConsumption: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn reject_stop_orders( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetRejectStopOrders<S>>
where S::RejectStopOrders: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_reject_stop_orders( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetRejectStopOrders<S>>
where S::RejectStopOrders: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn support_gtd_orders( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetSupportGtdOrders<S>>
where S::SupportGtdOrders: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_support_gtd_orders( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetSupportGtdOrders<S>>
where S::SupportGtdOrders: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn support_contingent_orders( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetSupportContingentOrders<S>>
where S::SupportContingentOrders: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_support_contingent_orders( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetSupportContingentOrders<S>>
where S::SupportContingentOrders: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn use_position_ids( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetUsePositionIds<S>>
where S::UsePositionIds: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_use_position_ids( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetUsePositionIds<S>>
where S::UsePositionIds: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn use_random_ids( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetUseRandomIds<S>>
where S::UseRandomIds: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_use_random_ids( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetUseRandomIds<S>>
where S::UseRandomIds: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn use_reduce_only( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetUseReduceOnly<S>>
where S::UseReduceOnly: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_use_reduce_only( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetUseReduceOnly<S>>
where S::UseReduceOnly: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn use_market_order_acks( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetUseMarketOrderAcks<S>>
where S::UseMarketOrderAcks: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_use_market_order_acks( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetUseMarketOrderAcks<S>>
where S::UseMarketOrderAcks: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn queue_position( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetQueuePosition<S>>
where S::QueuePosition: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_queue_position( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetQueuePosition<S>>
where S::QueuePosition: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn oto_full_trigger( self, value: bool, ) -> OrderMatchingEngineConfigBuilder<SetOtoFullTrigger<S>>
where S::OtoFullTrigger: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn maybe_oto_full_trigger( self, value: Option<bool>, ) -> OrderMatchingEngineConfigBuilder<SetOtoFullTrigger<S>>
where S::OtoFullTrigger: IsUnset,

Optional (Some / Option setters). Default: false.

Source

pub fn price_protection_points( self, value: u32, ) -> OrderMatchingEngineConfigBuilder<SetPriceProtectionPoints<S>>
where S::PriceProtectionPoints: IsUnset,

Optional (Some / Option setters).

Source

pub fn maybe_price_protection_points( self, value: Option<u32>, ) -> OrderMatchingEngineConfigBuilder<SetPriceProtectionPoints<S>>
where S::PriceProtectionPoints: IsUnset,

Optional (Some / Option setters).

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

§

impl<T> Ungil for T
where T: Send,