pub struct StatsigClientConfigBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> StatsigClientConfigBuilder<S>
impl<S: State> StatsigClientConfigBuilder<S>
Sourcepub fn build(self) -> StatsigClientConfigwhere
S: IsComplete,
pub fn build(self) -> StatsigClientConfigwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn api_key(
self,
value: impl Into<String>,
) -> StatsigClientConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
pub fn api_key(
self,
value: impl Into<String>,
) -> StatsigClientConfigBuilder<SetApiKey<S>>where
S::ApiKey: IsUnset,
Required.
Sourcepub fn base_url(
self,
value: String,
) -> StatsigClientConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
pub fn base_url(
self,
value: String,
) -> StatsigClientConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
Sourcepub fn maybe_base_url(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
pub fn maybe_base_url(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetBaseUrl<S>>where
S::BaseUrl: IsUnset,
Sourcepub fn events_base_url(
self,
value: String,
) -> StatsigClientConfigBuilder<SetEventsBaseUrl<S>>where
S::EventsBaseUrl: IsUnset,
pub fn events_base_url(
self,
value: String,
) -> StatsigClientConfigBuilder<SetEventsBaseUrl<S>>where
S::EventsBaseUrl: IsUnset,
Sourcepub fn maybe_events_base_url(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetEventsBaseUrl<S>>where
S::EventsBaseUrl: IsUnset,
pub fn maybe_events_base_url(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetEventsBaseUrl<S>>where
S::EventsBaseUrl: IsUnset,
Sourcepub fn timeout(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetTimeout<S>>where
S::Timeout: IsUnset,
pub fn timeout(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetTimeout<S>>where
S::Timeout: IsUnset,
Sourcepub fn maybe_timeout(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetTimeout<S>>where
S::Timeout: IsUnset,
pub fn maybe_timeout(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetTimeout<S>>where
S::Timeout: IsUnset,
Sourcepub fn retry_attempts(
self,
value: u32,
) -> StatsigClientConfigBuilder<SetRetryAttempts<S>>where
S::RetryAttempts: IsUnset,
pub fn retry_attempts(
self,
value: u32,
) -> StatsigClientConfigBuilder<SetRetryAttempts<S>>where
S::RetryAttempts: IsUnset,
Sourcepub fn maybe_retry_attempts(
self,
value: Option<u32>,
) -> StatsigClientConfigBuilder<SetRetryAttempts<S>>where
S::RetryAttempts: IsUnset,
pub fn maybe_retry_attempts(
self,
value: Option<u32>,
) -> StatsigClientConfigBuilder<SetRetryAttempts<S>>where
S::RetryAttempts: IsUnset,
Sourcepub fn retry_delay(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetRetryDelay<S>>where
S::RetryDelay: IsUnset,
pub fn retry_delay(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetRetryDelay<S>>where
S::RetryDelay: IsUnset,
Sourcepub fn maybe_retry_delay(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetRetryDelay<S>>where
S::RetryDelay: IsUnset,
pub fn maybe_retry_delay(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetRetryDelay<S>>where
S::RetryDelay: IsUnset,
Sourcepub fn cache_ttl(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetCacheTtl<S>>where
S::CacheTtl: IsUnset,
pub fn cache_ttl(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetCacheTtl<S>>where
S::CacheTtl: IsUnset,
Sourcepub fn maybe_cache_ttl(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetCacheTtl<S>>where
S::CacheTtl: IsUnset,
pub fn maybe_cache_ttl(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetCacheTtl<S>>where
S::CacheTtl: IsUnset,
Sourcepub fn cache_max_capacity(
self,
value: u64,
) -> StatsigClientConfigBuilder<SetCacheMaxCapacity<S>>where
S::CacheMaxCapacity: IsUnset,
pub fn cache_max_capacity(
self,
value: u64,
) -> StatsigClientConfigBuilder<SetCacheMaxCapacity<S>>where
S::CacheMaxCapacity: IsUnset,
Sourcepub fn maybe_cache_max_capacity(
self,
value: Option<u64>,
) -> StatsigClientConfigBuilder<SetCacheMaxCapacity<S>>where
S::CacheMaxCapacity: IsUnset,
pub fn maybe_cache_max_capacity(
self,
value: Option<u64>,
) -> StatsigClientConfigBuilder<SetCacheMaxCapacity<S>>where
S::CacheMaxCapacity: IsUnset,
Sourcepub fn batch_size(
self,
value: usize,
) -> StatsigClientConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
pub fn batch_size(
self,
value: usize,
) -> StatsigClientConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
Sourcepub fn maybe_batch_size(
self,
value: Option<usize>,
) -> StatsigClientConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
pub fn maybe_batch_size(
self,
value: Option<usize>,
) -> StatsigClientConfigBuilder<SetBatchSize<S>>where
S::BatchSize: IsUnset,
Sourcepub fn batch_flush_interval(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetBatchFlushInterval<S>>where
S::BatchFlushInterval: IsUnset,
pub fn batch_flush_interval(
self,
value: Duration,
) -> StatsigClientConfigBuilder<SetBatchFlushInterval<S>>where
S::BatchFlushInterval: IsUnset,
Sourcepub fn maybe_batch_flush_interval(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetBatchFlushInterval<S>>where
S::BatchFlushInterval: IsUnset,
pub fn maybe_batch_flush_interval(
self,
value: Option<Duration>,
) -> StatsigClientConfigBuilder<SetBatchFlushInterval<S>>where
S::BatchFlushInterval: IsUnset,
Sourcepub fn offline_fallback(
self,
value: bool,
) -> StatsigClientConfigBuilder<SetOfflineFallback<S>>where
S::OfflineFallback: IsUnset,
pub fn offline_fallback(
self,
value: bool,
) -> StatsigClientConfigBuilder<SetOfflineFallback<S>>where
S::OfflineFallback: IsUnset,
Sourcepub fn maybe_offline_fallback(
self,
value: Option<bool>,
) -> StatsigClientConfigBuilder<SetOfflineFallback<S>>where
S::OfflineFallback: IsUnset,
pub fn maybe_offline_fallback(
self,
value: Option<bool>,
) -> StatsigClientConfigBuilder<SetOfflineFallback<S>>where
S::OfflineFallback: IsUnset,
Sourcepub fn exposure_logging_disabled(
self,
value: bool,
) -> StatsigClientConfigBuilder<SetExposureLoggingDisabled<S>>where
S::ExposureLoggingDisabled: IsUnset,
pub fn exposure_logging_disabled(
self,
value: bool,
) -> StatsigClientConfigBuilder<SetExposureLoggingDisabled<S>>where
S::ExposureLoggingDisabled: IsUnset,
Sourcepub fn maybe_exposure_logging_disabled(
self,
value: Option<bool>,
) -> StatsigClientConfigBuilder<SetExposureLoggingDisabled<S>>where
S::ExposureLoggingDisabled: IsUnset,
pub fn maybe_exposure_logging_disabled(
self,
value: Option<bool>,
) -> StatsigClientConfigBuilder<SetExposureLoggingDisabled<S>>where
S::ExposureLoggingDisabled: IsUnset,
Sourcepub fn sdk_type(
self,
value: String,
) -> StatsigClientConfigBuilder<SetSdkType<S>>where
S::SdkType: IsUnset,
pub fn sdk_type(
self,
value: String,
) -> StatsigClientConfigBuilder<SetSdkType<S>>where
S::SdkType: IsUnset,
Sourcepub fn maybe_sdk_type(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetSdkType<S>>where
S::SdkType: IsUnset,
pub fn maybe_sdk_type(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetSdkType<S>>where
S::SdkType: IsUnset,
Sourcepub fn sdk_version(
self,
value: String,
) -> StatsigClientConfigBuilder<SetSdkVersion<S>>where
S::SdkVersion: IsUnset,
pub fn sdk_version(
self,
value: String,
) -> StatsigClientConfigBuilder<SetSdkVersion<S>>where
S::SdkVersion: IsUnset,
Sourcepub fn maybe_sdk_version(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetSdkVersion<S>>where
S::SdkVersion: IsUnset,
pub fn maybe_sdk_version(
self,
value: Option<String>,
) -> StatsigClientConfigBuilder<SetSdkVersion<S>>where
S::SdkVersion: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for StatsigClientConfigBuilder<S>
impl<S> RefUnwindSafe for StatsigClientConfigBuilder<S>
impl<S> Send for StatsigClientConfigBuilder<S>
impl<S> Sync for StatsigClientConfigBuilder<S>
impl<S> Unpin for StatsigClientConfigBuilder<S>
impl<S> UnwindSafe for StatsigClientConfigBuilder<S>
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more