pub struct ClientOptionsBuilder { /* private fields */ }Expand description
Builder for ClientOptions.
Implementations§
Source§impl ClientOptionsBuilder
impl ClientOptionsBuilder
Sourcepub fn host<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn host<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Host URL for the PostHog API (defaults to US ingestion endpoint)
Sourcepub fn request_timeout_seconds(&mut self, value: u64) -> &mut Self
pub fn request_timeout_seconds(&mut self, value: u64) -> &mut Self
Request timeout in seconds
Sourcepub fn personal_api_key<VALUE: Into<String>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn personal_api_key<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
Personal API key for fetching flag definitions (required for local evaluation)
Sourcepub fn enable_local_evaluation(&mut self, value: bool) -> &mut Self
pub fn enable_local_evaluation(&mut self, value: bool) -> &mut Self
Enable local evaluation of feature flags
Sourcepub fn poll_interval_seconds(&mut self, value: u64) -> &mut Self
pub fn poll_interval_seconds(&mut self, value: u64) -> &mut Self
Interval for polling flag definitions (in seconds)
Sourcepub fn disable_geoip(&mut self, value: bool) -> &mut Self
pub fn disable_geoip(&mut self, value: bool) -> &mut Self
Disable automatic geoip enrichment
Sourcepub fn feature_flags_request_timeout_seconds(&mut self, value: u64) -> &mut Self
pub fn feature_flags_request_timeout_seconds(&mut self, value: u64) -> &mut Self
Feature flags request timeout in seconds
Sourcepub fn build(&self) -> Result<ClientOptions, ClientOptionsBuilderError>
pub fn build(&self) -> Result<ClientOptions, ClientOptionsBuilderError>
Trait Implementations§
Source§impl Clone for ClientOptionsBuilder
impl Clone for ClientOptionsBuilder
Source§fn clone(&self) -> ClientOptionsBuilder
fn clone(&self) -> ClientOptionsBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClientOptionsBuilder
impl RefUnwindSafe for ClientOptionsBuilder
impl Send for ClientOptionsBuilder
impl Sync for ClientOptionsBuilder
impl Unpin for ClientOptionsBuilder
impl UnwindSafe for ClientOptionsBuilder
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