pub struct StartSessionParamsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> StartSessionParamsBuilder<S>
impl<S: State> StartSessionParamsBuilder<S>
Sourcepub fn build(self) -> StartSessionParamswhere
S: IsComplete,
pub fn build(self) -> StartSessionParamswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn url(self, value: String) -> StartSessionParamsBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: String) -> StartSessionParamsBuilder<SetUrl<S>>where
S::Url: IsUnset,
Required.
Backtest WebSocket base URL.
Sourcepub fn api_key(self, value: String) -> StartSessionParamsBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
pub fn api_key(self, value: String) -> StartSessionParamsBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
Required.
Sourcepub fn create(
self,
value: CreateBacktestSessionRequest,
) -> StartSessionParamsBuilder<SetCreate<S>>where
S::Create: IsUnset,
pub fn create(
self,
value: CreateBacktestSessionRequest,
) -> StartSessionParamsBuilder<SetCreate<S>>where
S::Create: IsUnset,
Required.
Sourcepub fn parent_cancel(
self,
value: CancellationToken,
) -> StartSessionParamsBuilder<SetParentCancel<S>>where
S::ParentCancel: IsUnset,
pub fn parent_cancel(
self,
value: CancellationToken,
) -> StartSessionParamsBuilder<SetParentCancel<S>>where
S::ParentCancel: IsUnset,
Sourcepub fn maybe_parent_cancel(
self,
value: Option<CancellationToken>,
) -> StartSessionParamsBuilder<SetParentCancel<S>>where
S::ParentCancel: IsUnset,
pub fn maybe_parent_cancel(
self,
value: Option<CancellationToken>,
) -> StartSessionParamsBuilder<SetParentCancel<S>>where
S::ParentCancel: IsUnset,
Sourcepub fn subscription_diagnostics(
self,
value: Arc<SubscriptionDiagnostics>,
) -> StartSessionParamsBuilder<SetSubscriptionDiagnostics<S>>where
S::SubscriptionDiagnostics: IsUnset,
pub fn subscription_diagnostics(
self,
value: Arc<SubscriptionDiagnostics>,
) -> StartSessionParamsBuilder<SetSubscriptionDiagnostics<S>>where
S::SubscriptionDiagnostics: IsUnset,
Sourcepub fn maybe_subscription_diagnostics(
self,
value: Option<Arc<SubscriptionDiagnostics>>,
) -> StartSessionParamsBuilder<SetSubscriptionDiagnostics<S>>where
S::SubscriptionDiagnostics: IsUnset,
pub fn maybe_subscription_diagnostics(
self,
value: Option<Arc<SubscriptionDiagnostics>>,
) -> StartSessionParamsBuilder<SetSubscriptionDiagnostics<S>>where
S::SubscriptionDiagnostics: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for StartSessionParamsBuilder<S>
impl<S> RefUnwindSafe for StartSessionParamsBuilder<S>
impl<S> Send for StartSessionParamsBuilder<S>
impl<S> Sync for StartSessionParamsBuilder<S>
impl<S> Unpin for StartSessionParamsBuilder<S>
impl<S> UnsafeUnpin for StartSessionParamsBuilder<S>
impl<S> UnwindSafe for StartSessionParamsBuilder<S>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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