pub struct PortfolioConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PortfolioConfigBuilder<S>
impl<S: State> PortfolioConfigBuilder<S>
Sourcepub fn build(self) -> PortfolioConfigwhere
S: IsComplete,
pub fn build(self) -> PortfolioConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn use_mark_prices(
self,
value: bool,
) -> PortfolioConfigBuilder<SetUseMarkPrices<S>>where
S::UseMarkPrices: IsUnset,
pub fn use_mark_prices(
self,
value: bool,
) -> PortfolioConfigBuilder<SetUseMarkPrices<S>>where
S::UseMarkPrices: IsUnset,
Sourcepub fn maybe_use_mark_prices(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetUseMarkPrices<S>>where
S::UseMarkPrices: IsUnset,
pub fn maybe_use_mark_prices(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetUseMarkPrices<S>>where
S::UseMarkPrices: IsUnset,
Sourcepub fn use_mark_xrates(
self,
value: bool,
) -> PortfolioConfigBuilder<SetUseMarkXrates<S>>where
S::UseMarkXrates: IsUnset,
pub fn use_mark_xrates(
self,
value: bool,
) -> PortfolioConfigBuilder<SetUseMarkXrates<S>>where
S::UseMarkXrates: IsUnset,
Sourcepub fn maybe_use_mark_xrates(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetUseMarkXrates<S>>where
S::UseMarkXrates: IsUnset,
pub fn maybe_use_mark_xrates(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetUseMarkXrates<S>>where
S::UseMarkXrates: IsUnset,
Sourcepub fn bar_updates(
self,
value: bool,
) -> PortfolioConfigBuilder<SetBarUpdates<S>>where
S::BarUpdates: IsUnset,
pub fn bar_updates(
self,
value: bool,
) -> PortfolioConfigBuilder<SetBarUpdates<S>>where
S::BarUpdates: IsUnset,
Sourcepub fn maybe_bar_updates(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetBarUpdates<S>>where
S::BarUpdates: IsUnset,
pub fn maybe_bar_updates(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetBarUpdates<S>>where
S::BarUpdates: IsUnset,
Sourcepub fn convert_to_account_base_currency(
self,
value: bool,
) -> PortfolioConfigBuilder<SetConvertToAccountBaseCurrency<S>>where
S::ConvertToAccountBaseCurrency: IsUnset,
pub fn convert_to_account_base_currency(
self,
value: bool,
) -> PortfolioConfigBuilder<SetConvertToAccountBaseCurrency<S>>where
S::ConvertToAccountBaseCurrency: IsUnset,
Sourcepub fn maybe_convert_to_account_base_currency(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetConvertToAccountBaseCurrency<S>>where
S::ConvertToAccountBaseCurrency: IsUnset,
pub fn maybe_convert_to_account_base_currency(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetConvertToAccountBaseCurrency<S>>where
S::ConvertToAccountBaseCurrency: IsUnset,
Sourcepub fn min_account_state_logging_interval_ms(
self,
value: u64,
) -> PortfolioConfigBuilder<SetMinAccountStateLoggingIntervalMs<S>>where
S::MinAccountStateLoggingIntervalMs: IsUnset,
pub fn min_account_state_logging_interval_ms(
self,
value: u64,
) -> PortfolioConfigBuilder<SetMinAccountStateLoggingIntervalMs<S>>where
S::MinAccountStateLoggingIntervalMs: IsUnset,
Optional (Some / Option setters). The minimum interval (milliseconds) between logging account state events for the same account. When set, account state updates will only be logged if this much time has passed since the last log. Useful for HFT deployments to prevent excessive logging when account states change rapidly.
Sourcepub fn maybe_min_account_state_logging_interval_ms(
self,
value: Option<u64>,
) -> PortfolioConfigBuilder<SetMinAccountStateLoggingIntervalMs<S>>where
S::MinAccountStateLoggingIntervalMs: IsUnset,
pub fn maybe_min_account_state_logging_interval_ms(
self,
value: Option<u64>,
) -> PortfolioConfigBuilder<SetMinAccountStateLoggingIntervalMs<S>>where
S::MinAccountStateLoggingIntervalMs: IsUnset,
Optional (Some / Option setters). The minimum interval (milliseconds) between logging account state events for the same account. When set, account state updates will only be logged if this much time has passed since the last log. Useful for HFT deployments to prevent excessive logging when account states change rapidly.
Sourcepub fn debug(self, value: bool) -> PortfolioConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn debug(self, value: bool) -> PortfolioConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Sourcepub fn maybe_debug(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
pub fn maybe_debug(
self,
value: Option<bool>,
) -> PortfolioConfigBuilder<SetDebug<S>>where
S::Debug: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PortfolioConfigBuilder<S>
impl<S> RefUnwindSafe for PortfolioConfigBuilder<S>
impl<S> Send for PortfolioConfigBuilder<S>
impl<S> Sync for PortfolioConfigBuilder<S>
impl<S> Unpin for PortfolioConfigBuilder<S>
impl<S> UnsafeUnpin for PortfolioConfigBuilder<S>
impl<S> UnwindSafe for PortfolioConfigBuilder<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
§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>
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>
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