pub enum FeatureFlagsResponse {
V2 {
flags: HashMap<String, FlagDetail>,
errors_while_computing_flags: bool,
},
Legacy {
feature_flags: HashMap<String, FlagValue>,
feature_flag_payloads: HashMap<String, Value>,
errors: Option<Vec<String>>,
},
}Expand description
Response from the PostHog feature flags API.
Supports both the v2 API format (with detailed flag information) and the legacy format (simple flag values and payloads).
Variants§
V2
v2 API format from /flags/?v=2 endpoint
Fields
§
flags: HashMap<String, FlagDetail>Map of flag keys to their detailed evaluation results
Legacy
Legacy format from older decide endpoint
Implementations§
Trait Implementations§
Source§impl Clone for FeatureFlagsResponse
impl Clone for FeatureFlagsResponse
Source§fn clone(&self) -> FeatureFlagsResponse
fn clone(&self) -> FeatureFlagsResponse
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 FeatureFlagsResponse
impl Debug for FeatureFlagsResponse
Source§impl<'de> Deserialize<'de> for FeatureFlagsResponse
impl<'de> Deserialize<'de> for FeatureFlagsResponse
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 FeatureFlagsResponse
impl RefUnwindSafe for FeatureFlagsResponse
impl Send for FeatureFlagsResponse
impl Sync for FeatureFlagsResponse
impl Unpin for FeatureFlagsResponse
impl UnwindSafe for FeatureFlagsResponse
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