pub struct BacktestRunConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> BacktestRunConfigBuilder<S>
impl<S: State> BacktestRunConfigBuilder<S>
Sourcepub fn build(self) -> BacktestRunConfigwhere
S: IsComplete,
pub fn build(self) -> BacktestRunConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: String) -> BacktestRunConfigBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: String) -> BacktestRunConfigBuilder<SetId<S>>where
S::Id: IsUnset,
Sourcepub fn maybe_id(
self,
value: Option<String>,
) -> BacktestRunConfigBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn maybe_id(
self,
value: Option<String>,
) -> BacktestRunConfigBuilder<SetId<S>>where
S::Id: IsUnset,
Sourcepub fn venues(
self,
value: Vec<BacktestVenueConfig>,
) -> BacktestRunConfigBuilder<SetVenues<S>>where
S::Venues: IsUnset,
pub fn venues(
self,
value: Vec<BacktestVenueConfig>,
) -> BacktestRunConfigBuilder<SetVenues<S>>where
S::Venues: IsUnset,
Required.
The venue configurations for the backtest run.
Sourcepub fn data(
self,
value: Vec<BacktestDataConfig>,
) -> BacktestRunConfigBuilder<SetData<S>>where
S::Data: IsUnset,
pub fn data(
self,
value: Vec<BacktestDataConfig>,
) -> BacktestRunConfigBuilder<SetData<S>>where
S::Data: IsUnset,
Required.
The data configurations for the backtest run.
Sourcepub fn engine(
self,
value: BacktestEngineConfig,
) -> BacktestRunConfigBuilder<SetEngine<S>>where
S::Engine: IsUnset,
pub fn engine(
self,
value: BacktestEngineConfig,
) -> BacktestRunConfigBuilder<SetEngine<S>>where
S::Engine: IsUnset,
Sourcepub fn maybe_engine(
self,
value: Option<BacktestEngineConfig>,
) -> BacktestRunConfigBuilder<SetEngine<S>>where
S::Engine: IsUnset,
pub fn maybe_engine(
self,
value: Option<BacktestEngineConfig>,
) -> BacktestRunConfigBuilder<SetEngine<S>>where
S::Engine: IsUnset,
Sourcepub fn chunk_size(
self,
value: usize,
) -> BacktestRunConfigBuilder<SetChunkSize<S>>where
S::ChunkSize: IsUnset,
pub fn chunk_size(
self,
value: usize,
) -> BacktestRunConfigBuilder<SetChunkSize<S>>where
S::ChunkSize: IsUnset,
Sourcepub fn maybe_chunk_size(
self,
value: Option<usize>,
) -> BacktestRunConfigBuilder<SetChunkSize<S>>where
S::ChunkSize: IsUnset,
pub fn maybe_chunk_size(
self,
value: Option<usize>,
) -> BacktestRunConfigBuilder<SetChunkSize<S>>where
S::ChunkSize: IsUnset,
Sourcepub fn raise_exception(
self,
value: bool,
) -> BacktestRunConfigBuilder<SetRaiseException<S>>where
S::RaiseException: IsUnset,
pub fn raise_exception(
self,
value: bool,
) -> BacktestRunConfigBuilder<SetRaiseException<S>>where
S::RaiseException: IsUnset,
Sourcepub fn maybe_raise_exception(
self,
value: Option<bool>,
) -> BacktestRunConfigBuilder<SetRaiseException<S>>where
S::RaiseException: IsUnset,
pub fn maybe_raise_exception(
self,
value: Option<bool>,
) -> BacktestRunConfigBuilder<SetRaiseException<S>>where
S::RaiseException: IsUnset,
Sourcepub fn dispose_on_completion(
self,
value: bool,
) -> BacktestRunConfigBuilder<SetDisposeOnCompletion<S>>where
S::DisposeOnCompletion: IsUnset,
pub fn dispose_on_completion(
self,
value: bool,
) -> BacktestRunConfigBuilder<SetDisposeOnCompletion<S>>where
S::DisposeOnCompletion: IsUnset,
Sourcepub fn maybe_dispose_on_completion(
self,
value: Option<bool>,
) -> BacktestRunConfigBuilder<SetDisposeOnCompletion<S>>where
S::DisposeOnCompletion: IsUnset,
pub fn maybe_dispose_on_completion(
self,
value: Option<bool>,
) -> BacktestRunConfigBuilder<SetDisposeOnCompletion<S>>where
S::DisposeOnCompletion: IsUnset,
Sourcepub fn start(self, value: UnixNanos) -> BacktestRunConfigBuilder<SetStart<S>>where
S::Start: IsUnset,
pub fn start(self, value: UnixNanos) -> BacktestRunConfigBuilder<SetStart<S>>where
S::Start: IsUnset,
Sourcepub fn maybe_start(
self,
value: Option<UnixNanos>,
) -> BacktestRunConfigBuilder<SetStart<S>>where
S::Start: IsUnset,
pub fn maybe_start(
self,
value: Option<UnixNanos>,
) -> BacktestRunConfigBuilder<SetStart<S>>where
S::Start: IsUnset,
Sourcepub fn end(self, value: UnixNanos) -> BacktestRunConfigBuilder<SetEnd<S>>where
S::End: IsUnset,
pub fn end(self, value: UnixNanos) -> BacktestRunConfigBuilder<SetEnd<S>>where
S::End: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for BacktestRunConfigBuilder<S>
impl<S = Empty> !RefUnwindSafe for BacktestRunConfigBuilder<S>
impl<S> Send for BacktestRunConfigBuilder<S>
impl<S = Empty> !Sync for BacktestRunConfigBuilder<S>
impl<S> Unpin for BacktestRunConfigBuilder<S>
impl<S> UnsafeUnpin for BacktestRunConfigBuilder<S>
impl<S> UnwindSafe for BacktestRunConfigBuilder<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