pub struct GrowthBookFeatureRuleExperiment {
pub key: Option<String>,
pub variations: Vec<Value>,
pub coverage: Option<f32>,
pub hash_version: Option<i64>,
pub hash_attribute: Option<String>,
pub fallback_attribute: Option<String>,
pub namespace: Option<Vec<Value>>,
pub ranges: Option<Vec<Vec<f32>>>,
pub meta: Option<Value>,
pub filters: Option<Value>,
pub condition: Option<Value>,
/* private fields */
}Fields§
§key: Option<String>§variations: Vec<Value>§coverage: Option<f32>§hash_version: Option<i64>§hash_attribute: Option<String>§fallback_attribute: Option<String>§namespace: Option<Vec<Value>>§ranges: Option<Vec<Vec<f32>>>§meta: Option<Value>§filters: Option<Value>§condition: Option<Value>Implementations§
Source§impl GrowthBookFeatureRuleExperiment
impl GrowthBookFeatureRuleExperiment
pub fn seed(&self, feature_name: &str) -> String
pub fn ranges(&self) -> Vec<Range>
pub fn namespace_range(&self) -> Option<(String, Range)>
pub fn model_experiment(&self) -> Experiment
Source§impl GrowthBookFeatureRuleExperiment
impl GrowthBookFeatureRuleExperiment
pub fn get_match_value( &self, feature_name: &str, user_attributes: &Vec<GrowthBookAttribute>, forced_variations: &Option<HashMap<String, i64>>, ) -> Option<FeatureResult>
Trait Implementations§
Source§impl Clone for GrowthBookFeatureRuleExperiment
impl Clone for GrowthBookFeatureRuleExperiment
Source§fn clone(&self) -> GrowthBookFeatureRuleExperiment
fn clone(&self) -> GrowthBookFeatureRuleExperiment
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<'de> Deserialize<'de> for GrowthBookFeatureRuleExperiment
impl<'de> Deserialize<'de> for GrowthBookFeatureRuleExperiment
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 GrowthBookFeatureRuleExperiment
impl RefUnwindSafe for GrowthBookFeatureRuleExperiment
impl Send for GrowthBookFeatureRuleExperiment
impl Sync for GrowthBookFeatureRuleExperiment
impl Unpin for GrowthBookFeatureRuleExperiment
impl UnwindSafe for GrowthBookFeatureRuleExperiment
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