pub struct FinFeedDataClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> FinFeedDataClientConfigBuilder<S>
impl<S: State> FinFeedDataClientConfigBuilder<S>
Sourcepub fn build(self) -> FinFeedDataClientConfigwhere
S: IsComplete,
pub fn build(self) -> FinFeedDataClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn api_key(
self,
value: SecretString,
) -> FinFeedDataClientConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
pub fn api_key(
self,
value: SecretString,
) -> FinFeedDataClientConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
Sourcepub fn maybe_api_key(
self,
value: Option<SecretString>,
) -> FinFeedDataClientConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
pub fn maybe_api_key(
self,
value: Option<SecretString>,
) -> FinFeedDataClientConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
Sourcepub fn http(
self,
value: FinFeedHttpConfig,
) -> FinFeedDataClientConfigBuilder<SetHttp<S>>where
S::Http: IsUnset,
pub fn http(
self,
value: FinFeedHttpConfig,
) -> FinFeedDataClientConfigBuilder<SetHttp<S>>where
S::Http: IsUnset,
Sourcepub fn maybe_http(
self,
value: Option<FinFeedHttpConfig>,
) -> FinFeedDataClientConfigBuilder<SetHttp<S>>where
S::Http: IsUnset,
pub fn maybe_http(
self,
value: Option<FinFeedHttpConfig>,
) -> FinFeedDataClientConfigBuilder<SetHttp<S>>where
S::Http: IsUnset,
Sourcepub fn instruments(
self,
value: Vec<FinFeedInstrumentSelection>,
) -> FinFeedDataClientConfigBuilder<SetInstruments<S>>where
S::Instruments: IsUnset,
pub fn instruments(
self,
value: Vec<FinFeedInstrumentSelection>,
) -> FinFeedDataClientConfigBuilder<SetInstruments<S>>where
S::Instruments: IsUnset,
Sourcepub fn maybe_instruments(
self,
value: Option<Vec<FinFeedInstrumentSelection>>,
) -> FinFeedDataClientConfigBuilder<SetInstruments<S>>where
S::Instruments: IsUnset,
pub fn maybe_instruments(
self,
value: Option<Vec<FinFeedInstrumentSelection>>,
) -> FinFeedDataClientConfigBuilder<SetInstruments<S>>where
S::Instruments: IsUnset,
Sourcepub fn poll_interval_ms(
self,
value: u64,
) -> FinFeedDataClientConfigBuilder<SetPollIntervalMs<S>>where
S::PollIntervalMs: IsUnset,
pub fn poll_interval_ms(
self,
value: u64,
) -> FinFeedDataClientConfigBuilder<SetPollIntervalMs<S>>where
S::PollIntervalMs: IsUnset,
Sourcepub fn maybe_poll_interval_ms(
self,
value: Option<u64>,
) -> FinFeedDataClientConfigBuilder<SetPollIntervalMs<S>>where
S::PollIntervalMs: IsUnset,
pub fn maybe_poll_interval_ms(
self,
value: Option<u64>,
) -> FinFeedDataClientConfigBuilder<SetPollIntervalMs<S>>where
S::PollIntervalMs: IsUnset,
Sourcepub fn poll_limit(
self,
value: u32,
) -> FinFeedDataClientConfigBuilder<SetPollLimit<S>>where
S::PollLimit: IsUnset,
pub fn poll_limit(
self,
value: u32,
) -> FinFeedDataClientConfigBuilder<SetPollLimit<S>>where
S::PollLimit: IsUnset,
Sourcepub fn maybe_poll_limit(
self,
value: Option<u32>,
) -> FinFeedDataClientConfigBuilder<SetPollLimit<S>>where
S::PollLimit: IsUnset,
pub fn maybe_poll_limit(
self,
value: Option<u32>,
) -> FinFeedDataClientConfigBuilder<SetPollLimit<S>>where
S::PollLimit: IsUnset,
Sourcepub fn connect_timeout_secs(
self,
value: u64,
) -> FinFeedDataClientConfigBuilder<SetConnectTimeoutSecs<S>>where
S::ConnectTimeoutSecs: IsUnset,
pub fn connect_timeout_secs(
self,
value: u64,
) -> FinFeedDataClientConfigBuilder<SetConnectTimeoutSecs<S>>where
S::ConnectTimeoutSecs: IsUnset,
Sourcepub fn maybe_connect_timeout_secs(
self,
value: Option<u64>,
) -> FinFeedDataClientConfigBuilder<SetConnectTimeoutSecs<S>>where
S::ConnectTimeoutSecs: IsUnset,
pub fn maybe_connect_timeout_secs(
self,
value: Option<u64>,
) -> FinFeedDataClientConfigBuilder<SetConnectTimeoutSecs<S>>where
S::ConnectTimeoutSecs: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for FinFeedDataClientConfigBuilder<S>
impl<S> RefUnwindSafe for FinFeedDataClientConfigBuilder<S>
impl<S> Send for FinFeedDataClientConfigBuilder<S>
impl<S> Sync for FinFeedDataClientConfigBuilder<S>
impl<S> Unpin for FinFeedDataClientConfigBuilder<S>
impl<S> UnsafeUnpin for FinFeedDataClientConfigBuilder<S>
impl<S> UnwindSafe for FinFeedDataClientConfigBuilder<S>
Blanket Implementations§
impl<T> Allocation for T
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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