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