pub struct LocalEvaluationConfig {
pub personal_api_key: String,
pub project_api_key: String,
pub api_host: String,
pub poll_interval: Duration,
pub request_timeout: Duration,
}Expand description
Configuration for local flag evaluation.
Specifies the credentials and settings needed to fetch feature flag definitions from the PostHog API for local evaluation.
Fields§
§personal_api_key: StringPersonal API key for authentication (found in PostHog project settings)
project_api_key: StringProject API key to identify which project’s flags to fetch
api_host: StringPostHog API host URL (e.g., “https://us.posthog.com”)
poll_interval: DurationHow often to poll for updated flag definitions
request_timeout: DurationTimeout for API requests
Trait Implementations§
Source§impl Clone for LocalEvaluationConfig
impl Clone for LocalEvaluationConfig
Source§fn clone(&self) -> LocalEvaluationConfig
fn clone(&self) -> LocalEvaluationConfig
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 LocalEvaluationConfig
impl RefUnwindSafe for LocalEvaluationConfig
impl Send for LocalEvaluationConfig
impl Sync for LocalEvaluationConfig
impl Unpin for LocalEvaluationConfig
impl UnwindSafe for LocalEvaluationConfig
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