pub struct PolymarketDataClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PolymarketDataClientConfigBuilder<S>
impl<S: State> PolymarketDataClientConfigBuilder<S>
Sourcepub fn build(self) -> PolymarketDataClientConfigwhere
S: IsComplete,
pub fn build(self) -> PolymarketDataClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn instrument_config(
self,
value: PolymarketInstrumentProviderConfig,
) -> PolymarketDataClientConfigBuilder<SetInstrumentConfig<S>>where
S::InstrumentConfig: IsUnset,
pub fn instrument_config(
self,
value: PolymarketInstrumentProviderConfig,
) -> PolymarketDataClientConfigBuilder<SetInstrumentConfig<S>>where
S::InstrumentConfig: IsUnset,
Sourcepub fn maybe_instrument_config(
self,
value: Option<PolymarketInstrumentProviderConfig>,
) -> PolymarketDataClientConfigBuilder<SetInstrumentConfig<S>>where
S::InstrumentConfig: IsUnset,
pub fn maybe_instrument_config(
self,
value: Option<PolymarketInstrumentProviderConfig>,
) -> PolymarketDataClientConfigBuilder<SetInstrumentConfig<S>>where
S::InstrumentConfig: IsUnset,
Sourcepub fn base_url_http(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn base_url_http(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn maybe_base_url_http(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
pub fn maybe_base_url_http(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlHttp<S>>where
S::BaseUrlHttp: IsUnset,
Sourcepub fn base_url_ws(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn base_url_ws(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
pub fn maybe_base_url_ws(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlWs<S>>where
S::BaseUrlWs: IsUnset,
Sourcepub fn base_url_rtds(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlRtds<S>>where
S::BaseUrlRtds: IsUnset,
pub fn base_url_rtds(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlRtds<S>>where
S::BaseUrlRtds: IsUnset,
Sourcepub fn maybe_base_url_rtds(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlRtds<S>>where
S::BaseUrlRtds: IsUnset,
pub fn maybe_base_url_rtds(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlRtds<S>>where
S::BaseUrlRtds: IsUnset,
Sourcepub fn base_url_gamma(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlGamma<S>>where
S::BaseUrlGamma: IsUnset,
pub fn base_url_gamma(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlGamma<S>>where
S::BaseUrlGamma: IsUnset,
Sourcepub fn maybe_base_url_gamma(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlGamma<S>>where
S::BaseUrlGamma: IsUnset,
pub fn maybe_base_url_gamma(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlGamma<S>>where
S::BaseUrlGamma: IsUnset,
Sourcepub fn base_url_data_api(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlDataApi<S>>where
S::BaseUrlDataApi: IsUnset,
pub fn base_url_data_api(
self,
value: String,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlDataApi<S>>where
S::BaseUrlDataApi: IsUnset,
Sourcepub fn maybe_base_url_data_api(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlDataApi<S>>where
S::BaseUrlDataApi: IsUnset,
pub fn maybe_base_url_data_api(
self,
value: Option<String>,
) -> PolymarketDataClientConfigBuilder<SetBaseUrlDataApi<S>>where
S::BaseUrlDataApi: IsUnset,
Sourcepub fn http_timeout_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn http_timeout_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
pub fn maybe_http_timeout_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetHttpTimeoutSecs<S>>where
S::HttpTimeoutSecs: IsUnset,
Sourcepub fn ws_timeout_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn ws_timeout_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
pub fn maybe_ws_timeout_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetWsTimeoutSecs<S>>where
S::WsTimeoutSecs: IsUnset,
Sourcepub fn ws_max_subscriptions(
self,
value: usize,
) -> PolymarketDataClientConfigBuilder<SetWsMaxSubscriptions<S>>where
S::WsMaxSubscriptions: IsUnset,
pub fn ws_max_subscriptions(
self,
value: usize,
) -> PolymarketDataClientConfigBuilder<SetWsMaxSubscriptions<S>>where
S::WsMaxSubscriptions: IsUnset,
Sourcepub fn maybe_ws_max_subscriptions(
self,
value: Option<usize>,
) -> PolymarketDataClientConfigBuilder<SetWsMaxSubscriptions<S>>where
S::WsMaxSubscriptions: IsUnset,
pub fn maybe_ws_max_subscriptions(
self,
value: Option<usize>,
) -> PolymarketDataClientConfigBuilder<SetWsMaxSubscriptions<S>>where
S::WsMaxSubscriptions: IsUnset,
Sourcepub fn update_instruments_interval_mins(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
pub fn update_instruments_interval_mins(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
Sourcepub fn maybe_update_instruments_interval_mins(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
pub fn maybe_update_instruments_interval_mins(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetUpdateInstrumentsIntervalMins<S>>where
S::UpdateInstrumentsIntervalMins: IsUnset,
Sourcepub fn subscribe_new_markets(
self,
value: bool,
) -> PolymarketDataClientConfigBuilder<SetSubscribeNewMarkets<S>>where
S::SubscribeNewMarkets: IsUnset,
pub fn subscribe_new_markets(
self,
value: bool,
) -> PolymarketDataClientConfigBuilder<SetSubscribeNewMarkets<S>>where
S::SubscribeNewMarkets: IsUnset,
Sourcepub fn maybe_subscribe_new_markets(
self,
value: Option<bool>,
) -> PolymarketDataClientConfigBuilder<SetSubscribeNewMarkets<S>>where
S::SubscribeNewMarkets: IsUnset,
pub fn maybe_subscribe_new_markets(
self,
value: Option<bool>,
) -> PolymarketDataClientConfigBuilder<SetSubscribeNewMarkets<S>>where
S::SubscribeNewMarkets: IsUnset,
Sourcepub fn new_market_fetch_max_concurrency(
self,
value: usize,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFetchMaxConcurrency<S>>where
S::NewMarketFetchMaxConcurrency: IsUnset,
pub fn new_market_fetch_max_concurrency(
self,
value: usize,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFetchMaxConcurrency<S>>where
S::NewMarketFetchMaxConcurrency: IsUnset,
Sourcepub fn maybe_new_market_fetch_max_concurrency(
self,
value: Option<usize>,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFetchMaxConcurrency<S>>where
S::NewMarketFetchMaxConcurrency: IsUnset,
pub fn maybe_new_market_fetch_max_concurrency(
self,
value: Option<usize>,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFetchMaxConcurrency<S>>where
S::NewMarketFetchMaxConcurrency: IsUnset,
Sourcepub fn auto_load_missing_instruments(
self,
value: bool,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMissingInstruments<S>>where
S::AutoLoadMissingInstruments: IsUnset,
pub fn auto_load_missing_instruments(
self,
value: bool,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMissingInstruments<S>>where
S::AutoLoadMissingInstruments: IsUnset,
Sourcepub fn maybe_auto_load_missing_instruments(
self,
value: Option<bool>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMissingInstruments<S>>where
S::AutoLoadMissingInstruments: IsUnset,
pub fn maybe_auto_load_missing_instruments(
self,
value: Option<bool>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMissingInstruments<S>>where
S::AutoLoadMissingInstruments: IsUnset,
Sourcepub fn auto_load_debounce_ms(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadDebounceMs<S>>where
S::AutoLoadDebounceMs: IsUnset,
pub fn auto_load_debounce_ms(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadDebounceMs<S>>where
S::AutoLoadDebounceMs: IsUnset,
Sourcepub fn maybe_auto_load_debounce_ms(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadDebounceMs<S>>where
S::AutoLoadDebounceMs: IsUnset,
pub fn maybe_auto_load_debounce_ms(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadDebounceMs<S>>where
S::AutoLoadDebounceMs: IsUnset,
Sourcepub fn auto_load_max_retries(
self,
value: u32,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMaxRetries<S>>where
S::AutoLoadMaxRetries: IsUnset,
pub fn auto_load_max_retries(
self,
value: u32,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMaxRetries<S>>where
S::AutoLoadMaxRetries: IsUnset,
Sourcepub fn maybe_auto_load_max_retries(
self,
value: Option<u32>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMaxRetries<S>>where
S::AutoLoadMaxRetries: IsUnset,
pub fn maybe_auto_load_max_retries(
self,
value: Option<u32>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadMaxRetries<S>>where
S::AutoLoadMaxRetries: IsUnset,
Sourcepub fn auto_load_retry_delay_initial_secs(
self,
value: f64,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayInitialSecs<S>>where
S::AutoLoadRetryDelayInitialSecs: IsUnset,
pub fn auto_load_retry_delay_initial_secs(
self,
value: f64,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayInitialSecs<S>>where
S::AutoLoadRetryDelayInitialSecs: IsUnset,
Sourcepub fn maybe_auto_load_retry_delay_initial_secs(
self,
value: Option<f64>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayInitialSecs<S>>where
S::AutoLoadRetryDelayInitialSecs: IsUnset,
pub fn maybe_auto_load_retry_delay_initial_secs(
self,
value: Option<f64>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayInitialSecs<S>>where
S::AutoLoadRetryDelayInitialSecs: IsUnset,
Sourcepub fn auto_load_retry_delay_max_secs(
self,
value: f64,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayMaxSecs<S>>where
S::AutoLoadRetryDelayMaxSecs: IsUnset,
pub fn auto_load_retry_delay_max_secs(
self,
value: f64,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayMaxSecs<S>>where
S::AutoLoadRetryDelayMaxSecs: IsUnset,
Sourcepub fn maybe_auto_load_retry_delay_max_secs(
self,
value: Option<f64>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayMaxSecs<S>>where
S::AutoLoadRetryDelayMaxSecs: IsUnset,
pub fn maybe_auto_load_retry_delay_max_secs(
self,
value: Option<f64>,
) -> PolymarketDataClientConfigBuilder<SetAutoLoadRetryDelayMaxSecs<S>>where
S::AutoLoadRetryDelayMaxSecs: IsUnset,
Sourcepub fn resolve_poll_enabled(
self,
value: bool,
) -> PolymarketDataClientConfigBuilder<SetResolvePollEnabled<S>>where
S::ResolvePollEnabled: IsUnset,
pub fn resolve_poll_enabled(
self,
value: bool,
) -> PolymarketDataClientConfigBuilder<SetResolvePollEnabled<S>>where
S::ResolvePollEnabled: IsUnset,
Sourcepub fn maybe_resolve_poll_enabled(
self,
value: Option<bool>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollEnabled<S>>where
S::ResolvePollEnabled: IsUnset,
pub fn maybe_resolve_poll_enabled(
self,
value: Option<bool>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollEnabled<S>>where
S::ResolvePollEnabled: IsUnset,
Sourcepub fn resolve_poll_interval_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetResolvePollIntervalSecs<S>>where
S::ResolvePollIntervalSecs: IsUnset,
pub fn resolve_poll_interval_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetResolvePollIntervalSecs<S>>where
S::ResolvePollIntervalSecs: IsUnset,
Sourcepub fn maybe_resolve_poll_interval_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollIntervalSecs<S>>where
S::ResolvePollIntervalSecs: IsUnset,
pub fn maybe_resolve_poll_interval_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollIntervalSecs<S>>where
S::ResolvePollIntervalSecs: IsUnset,
Sourcepub fn resolve_poll_grace_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetResolvePollGraceSecs<S>>where
S::ResolvePollGraceSecs: IsUnset,
pub fn resolve_poll_grace_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetResolvePollGraceSecs<S>>where
S::ResolvePollGraceSecs: IsUnset,
Sourcepub fn maybe_resolve_poll_grace_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollGraceSecs<S>>where
S::ResolvePollGraceSecs: IsUnset,
pub fn maybe_resolve_poll_grace_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollGraceSecs<S>>where
S::ResolvePollGraceSecs: IsUnset,
Sourcepub fn resolve_poll_max_wait_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetResolvePollMaxWaitSecs<S>>where
S::ResolvePollMaxWaitSecs: IsUnset,
pub fn resolve_poll_max_wait_secs(
self,
value: u64,
) -> PolymarketDataClientConfigBuilder<SetResolvePollMaxWaitSecs<S>>where
S::ResolvePollMaxWaitSecs: IsUnset,
Sourcepub fn maybe_resolve_poll_max_wait_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollMaxWaitSecs<S>>where
S::ResolvePollMaxWaitSecs: IsUnset,
pub fn maybe_resolve_poll_max_wait_secs(
self,
value: Option<u64>,
) -> PolymarketDataClientConfigBuilder<SetResolvePollMaxWaitSecs<S>>where
S::ResolvePollMaxWaitSecs: IsUnset,
Sourcepub fn filters(
self,
value: Vec<Arc<dyn InstrumentFilter>>,
) -> PolymarketDataClientConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn filters(
self,
value: Vec<Arc<dyn InstrumentFilter>>,
) -> PolymarketDataClientConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Sourcepub fn maybe_filters(
self,
value: Option<Vec<Arc<dyn InstrumentFilter>>>,
) -> PolymarketDataClientConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
pub fn maybe_filters(
self,
value: Option<Vec<Arc<dyn InstrumentFilter>>>,
) -> PolymarketDataClientConfigBuilder<SetFilters<S>>where
S::Filters: IsUnset,
Sourcepub fn new_market_filter(
self,
value: Arc<dyn InstrumentFilter>,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFilter<S>>where
S::NewMarketFilter: IsUnset,
pub fn new_market_filter(
self,
value: Arc<dyn InstrumentFilter>,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFilter<S>>where
S::NewMarketFilter: IsUnset,
Sourcepub fn maybe_new_market_filter(
self,
value: Option<Arc<dyn InstrumentFilter>>,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFilter<S>>where
S::NewMarketFilter: IsUnset,
pub fn maybe_new_market_filter(
self,
value: Option<Arc<dyn InstrumentFilter>>,
) -> PolymarketDataClientConfigBuilder<SetNewMarketFilter<S>>where
S::NewMarketFilter: IsUnset,
Sourcepub fn transport_backend(
self,
value: TransportBackend,
) -> PolymarketDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn transport_backend(
self,
value: TransportBackend,
) -> PolymarketDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Sourcepub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> PolymarketDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
pub fn maybe_transport_backend(
self,
value: Option<TransportBackend>,
) -> PolymarketDataClientConfigBuilder<SetTransportBackend<S>>where
S::TransportBackend: IsUnset,
Auto Trait Implementations§
impl<S = Empty> !RefUnwindSafe for PolymarketDataClientConfigBuilder<S>
impl<S = Empty> !UnwindSafe for PolymarketDataClientConfigBuilder<S>
impl<S> Freeze for PolymarketDataClientConfigBuilder<S>
impl<S> Send for PolymarketDataClientConfigBuilder<S>
impl<S> Sync for PolymarketDataClientConfigBuilder<S>
impl<S> Unpin for PolymarketDataClientConfigBuilder<S>
impl<S> UnsafeUnpin for PolymarketDataClientConfigBuilder<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<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>
§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