pub struct LiveRiskEngineConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> LiveRiskEngineConfigBuilder<S>
impl<S: State> LiveRiskEngineConfigBuilder<S>
Sourcepub fn build(self) -> LiveRiskEngineConfigwhere
S: IsComplete,
pub fn build(self) -> LiveRiskEngineConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn bypass(self, value: bool) -> LiveRiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
pub fn bypass(self, value: bool) -> LiveRiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
Sourcepub fn maybe_bypass(
self,
value: Option<bool>,
) -> LiveRiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
pub fn maybe_bypass(
self,
value: Option<bool>,
) -> LiveRiskEngineConfigBuilder<SetBypass<S>>where
S::Bypass: IsUnset,
Sourcepub fn max_order_submit_rate(
self,
value: String,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderSubmitRate<S>>where
S::MaxOrderSubmitRate: IsUnset,
pub fn max_order_submit_rate(
self,
value: String,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderSubmitRate<S>>where
S::MaxOrderSubmitRate: IsUnset,
Sourcepub fn maybe_max_order_submit_rate(
self,
value: Option<String>,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderSubmitRate<S>>where
S::MaxOrderSubmitRate: IsUnset,
pub fn maybe_max_order_submit_rate(
self,
value: Option<String>,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderSubmitRate<S>>where
S::MaxOrderSubmitRate: IsUnset,
Sourcepub fn max_order_modify_rate(
self,
value: String,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderModifyRate<S>>where
S::MaxOrderModifyRate: IsUnset,
pub fn max_order_modify_rate(
self,
value: String,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderModifyRate<S>>where
S::MaxOrderModifyRate: IsUnset,
Sourcepub fn maybe_max_order_modify_rate(
self,
value: Option<String>,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderModifyRate<S>>where
S::MaxOrderModifyRate: IsUnset,
pub fn maybe_max_order_modify_rate(
self,
value: Option<String>,
) -> LiveRiskEngineConfigBuilder<SetMaxOrderModifyRate<S>>where
S::MaxOrderModifyRate: IsUnset,
Sourcepub fn max_notional_per_order(
self,
value: HashMap<String, String>,
) -> LiveRiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
pub fn max_notional_per_order(
self,
value: HashMap<String, String>,
) -> LiveRiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
Sourcepub fn maybe_max_notional_per_order(
self,
value: Option<HashMap<String, String>>,
) -> LiveRiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
pub fn maybe_max_notional_per_order(
self,
value: Option<HashMap<String, String>>,
) -> LiveRiskEngineConfigBuilder<SetMaxNotionalPerOrder<S>>where
S::MaxNotionalPerOrder: IsUnset,
Sourcepub fn debug(self, value: bool) -> LiveRiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn debug(self, value: bool) -> LiveRiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Sourcepub fn maybe_debug(
self,
value: Option<bool>,
) -> LiveRiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn maybe_debug(
self,
value: Option<bool>,
) -> LiveRiskEngineConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Sourcepub fn graceful_shutdown_on_error(
self,
value: bool,
) -> LiveRiskEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
pub fn graceful_shutdown_on_error(
self,
value: bool,
) -> LiveRiskEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
Sourcepub fn maybe_graceful_shutdown_on_error(
self,
value: Option<bool>,
) -> LiveRiskEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
pub fn maybe_graceful_shutdown_on_error(
self,
value: Option<bool>,
) -> LiveRiskEngineConfigBuilder<SetGracefulShutdownOnError<S>>where
S::GracefulShutdownOnError: IsUnset,
Sourcepub fn qsize(self, value: u32) -> LiveRiskEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
pub fn qsize(self, value: u32) -> LiveRiskEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
Sourcepub fn maybe_qsize(
self,
value: Option<u32>,
) -> LiveRiskEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
pub fn maybe_qsize(
self,
value: Option<u32>,
) -> LiveRiskEngineConfigBuilder<SetQsize<S>>where
S::Qsize: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for LiveRiskEngineConfigBuilder<S>
impl<S> RefUnwindSafe for LiveRiskEngineConfigBuilder<S>
impl<S> Send for LiveRiskEngineConfigBuilder<S>
impl<S> Sync for LiveRiskEngineConfigBuilder<S>
impl<S> Unpin for LiveRiskEngineConfigBuilder<S>
impl<S> UnsafeUnpin for LiveRiskEngineConfigBuilder<S>
impl<S> UnwindSafe for LiveRiskEngineConfigBuilder<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