pub struct LocalEvaluationResponse {
pub flags: Vec<FeatureFlag>,
pub group_type_mapping: HashMap<String, String>,
pub cohorts: HashMap<String, Cohort>,
}Expand description
Response from the PostHog local evaluation API.
Contains feature flag definitions, group type mappings, and cohort definitions that can be cached locally for flag evaluation without server round-trips.
Fields§
§flags: Vec<FeatureFlag>List of feature flag definitions
group_type_mapping: HashMap<String, String>Mapping from group type keys to their display names
cohorts: HashMap<String, Cohort>Cohort definitions for evaluating cohort membership
Trait Implementations§
Source§impl Clone for LocalEvaluationResponse
impl Clone for LocalEvaluationResponse
Source§fn clone(&self) -> LocalEvaluationResponse
fn clone(&self) -> LocalEvaluationResponse
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 moreSource§impl Debug for LocalEvaluationResponse
impl Debug for LocalEvaluationResponse
Source§impl<'de> Deserialize<'de> for LocalEvaluationResponse
impl<'de> Deserialize<'de> for LocalEvaluationResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for LocalEvaluationResponse
impl RefUnwindSafe for LocalEvaluationResponse
impl Send for LocalEvaluationResponse
impl Sync for LocalEvaluationResponse
impl Unpin for LocalEvaluationResponse
impl UnwindSafe for LocalEvaluationResponse
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