pub struct RiskEngineConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> RiskEngineConfigBuilder<S>
impl<S: State> RiskEngineConfigBuilder<S>
Sourcepub fn build(self) -> RiskEngineConfigwhere
S: IsComplete,
pub fn build(self) -> RiskEngineConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn bypass(self, value: bool) -> RiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
pub fn bypass(self, value: bool) -> RiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
Sourcepub fn maybe_bypass(
self,
value: Option<bool>,
) -> RiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
pub fn maybe_bypass(
self,
value: Option<bool>,
) -> RiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
Sourcepub fn max_order_submit(
self,
value: RateLimit,
) -> RiskEngineConfigBuilder<SetMaxOrderSubmit<S>>where
S::MaxOrderSubmit: IsUnset,
pub fn max_order_submit(
self,
value: RateLimit,
) -> RiskEngineConfigBuilder<SetMaxOrderSubmit<S>>where
S::MaxOrderSubmit: IsUnset,
Sourcepub fn maybe_max_order_submit(
self,
value: Option<RateLimit>,
) -> RiskEngineConfigBuilder<SetMaxOrderSubmit<S>>where
S::MaxOrderSubmit: IsUnset,
pub fn maybe_max_order_submit(
self,
value: Option<RateLimit>,
) -> RiskEngineConfigBuilder<SetMaxOrderSubmit<S>>where
S::MaxOrderSubmit: IsUnset,
Sourcepub fn max_order_modify(
self,
value: RateLimit,
) -> RiskEngineConfigBuilder<SetMaxOrderModify<S>>where
S::MaxOrderModify: IsUnset,
pub fn max_order_modify(
self,
value: RateLimit,
) -> RiskEngineConfigBuilder<SetMaxOrderModify<S>>where
S::MaxOrderModify: IsUnset,
Sourcepub fn maybe_max_order_modify(
self,
value: Option<RateLimit>,
) -> RiskEngineConfigBuilder<SetMaxOrderModify<S>>where
S::MaxOrderModify: IsUnset,
pub fn maybe_max_order_modify(
self,
value: Option<RateLimit>,
) -> RiskEngineConfigBuilder<SetMaxOrderModify<S>>where
S::MaxOrderModify: IsUnset,
Sourcepub fn max_notional_per_order(
self,
value: AHashMap<InstrumentId, Decimal>,
) -> RiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
pub fn max_notional_per_order(
self,
value: AHashMap<InstrumentId, Decimal>,
) -> RiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
Sourcepub fn maybe_max_notional_per_order(
self,
value: Option<AHashMap<InstrumentId, Decimal>>,
) -> RiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
pub fn maybe_max_notional_per_order(
self,
value: Option<AHashMap<InstrumentId, Decimal>>,
) -> RiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
Sourcepub fn debug(self, value: bool) -> RiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn debug(self, value: bool) -> RiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Sourcepub fn maybe_debug(
self,
value: Option<bool>,
) -> RiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn maybe_debug(
self,
value: Option<bool>,
) -> RiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for RiskEngineConfigBuilder<S>
impl<S> RefUnwindSafe for RiskEngineConfigBuilder<S>
impl<S> Send for RiskEngineConfigBuilder<S>
impl<S> Sync for RiskEngineConfigBuilder<S>
impl<S> Unpin for RiskEngineConfigBuilder<S>
impl<S> UnsafeUnpin for RiskEngineConfigBuilder<S>
impl<S> UnwindSafe for RiskEngineConfigBuilder<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