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>>§person_properties: Option<HashMap<String, Value>>§group_properties: Option<HashMap<String, HashMap<String, Value>>>§only_evaluate_locally: bool§disable_geoip: Option<bool>§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.
Use this when you only need a handful of flags out of many.
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
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 EvaluateFlagsOptions
impl Debug for EvaluateFlagsOptions
Source§impl Default for EvaluateFlagsOptions
impl Default for EvaluateFlagsOptions
Source§fn default() -> EvaluateFlagsOptions
fn default() -> EvaluateFlagsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EvaluateFlagsOptions
impl RefUnwindSafe for EvaluateFlagsOptions
impl Send for EvaluateFlagsOptions
impl Sync for EvaluateFlagsOptions
impl Unpin for EvaluateFlagsOptions
impl UnsafeUnpin for EvaluateFlagsOptions
impl UnwindSafe for EvaluateFlagsOptions
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