pub struct EvaluateFlagsOptions {
pub groups: Option<HashMap<String, String>>,
pub person_properties: Option<HashMap<String, Value>>,
pub group_properties: Option<HashMap<String, HashMap<String, Value>>>,
pub only_evaluate_locally: bool,
pub disable_geoip: Option<bool>,
pub flag_keys: Option<Vec<String>>,
}Expand description
Optional inputs for Client::evaluate_flags.
Fields§
§groups: Option<HashMap<String, String>>Group keys for group-targeted feature flags, keyed by group type (for
example { "company": "company_123" }). These groups are also
attached to $feature_flag_called events emitted by the returned
snapshot.
person_properties: Option<HashMap<String, Value>>Person properties used by remote or local flag evaluation. Provide any properties referenced by release conditions when using local evaluation.
group_properties: Option<HashMap<String, HashMap<String, Value>>>Group properties used by group-targeted or mixed-targeting flags, keyed first by group type and then by property name.
only_evaluate_locally: boolWhen true, skip the remote /flags request and return only locally
evaluated results. If local evaluation is not configured, the snapshot is
empty.
disable_geoip: Option<bool>Per-call override for GeoIP behavior on /flags and
$feature_flag_called requests. None uses the client-level setting.
flag_keys: Option<Vec<String>>Optional list of flag keys. When provided, only these flags are
evaluated — the underlying /flags request asks the server for just
this subset, which makes the response smaller and the request cheaper.
An explicitly empty list returns an empty snapshot without local or
remote evaluation; None evaluates all flags.
Distinct from FeatureFlagEvaluations::only: flag_keys trims the
network call, only trims which flags
get attached to a captured event after evaluation.
Trait Implementations§
Source§impl Clone for EvaluateFlagsOptions
impl Clone for EvaluateFlagsOptions
Source§fn clone(&self) -> EvaluateFlagsOptions
fn clone(&self) -> EvaluateFlagsOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more