pub struct GrowthBookFeatureRuleForce {
pub force: Value,
pub coverage: Option<f32>,
pub hash_version: Option<i64>,
pub filters: Option<Value>,
pub seed: Option<String>,
/* private fields */
}Fields§
§force: Value§coverage: Option<f32>§hash_version: Option<i64>§filters: Option<Value>§seed: Option<String>Implementations§
Source§impl GrowthBookFeatureRuleForce
impl GrowthBookFeatureRuleForce
pub fn conditions(&self) -> Option<Vec<GrowthBookAttribute>>
pub fn range(&self) -> Option<Range>
pub fn get_fallback_attribute(&self) -> String
Source§impl GrowthBookFeatureRuleForce
impl GrowthBookFeatureRuleForce
pub fn get_match_value( &self, feature_name: &str, user_attributes: &Vec<GrowthBookAttribute>, ) -> Option<FeatureResult>
Trait Implementations§
Source§impl Clone for GrowthBookFeatureRuleForce
impl Clone for GrowthBookFeatureRuleForce
Source§fn clone(&self) -> GrowthBookFeatureRuleForce
fn clone(&self) -> GrowthBookFeatureRuleForce
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 GrowthBookFeatureRuleForce
impl Debug for GrowthBookFeatureRuleForce
Source§impl<'de> Deserialize<'de> for GrowthBookFeatureRuleForce
impl<'de> Deserialize<'de> for GrowthBookFeatureRuleForce
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 GrowthBookFeatureRuleForce
impl RefUnwindSafe for GrowthBookFeatureRuleForce
impl Send for GrowthBookFeatureRuleForce
impl Sync for GrowthBookFeatureRuleForce
impl Unpin for GrowthBookFeatureRuleForce
impl UnwindSafe for GrowthBookFeatureRuleForce
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