pub struct StatsigOptions {
pub api_url: Option<String>,
pub events_url: Option<String>,
pub disable_cache: bool,
pub config_sync_interval: Option<Duration>,
}
Expand description
Options to use when creating the client, they will override default values, if they exist.
The default value for api_url is https://api.statsig.com/v1 The default value for config_sync_interval is 15s
Fields§
§api_url: Option<String>
§events_url: Option<String>
§disable_cache: bool
§config_sync_interval: Option<Duration>
Implementations§
Source§impl StatsigOptions
impl StatsigOptions
pub fn default() -> Self
pub fn cache_disabled() -> Self
Auto Trait Implementations§
impl Freeze for StatsigOptions
impl RefUnwindSafe for StatsigOptions
impl Send for StatsigOptions
impl Sync for StatsigOptions
impl Unpin for StatsigOptions
impl UnwindSafe for StatsigOptions
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