GrowthBookClientTrait

Trait GrowthBookClientTrait 

Source
pub trait GrowthBookClientTrait:
    Debug
    + Send
    + Sync {
    // Required methods
    fn is_on(
        &self,
        feature_name: &str,
        user_attributes: Option<Vec<GrowthBookAttribute>>,
    ) -> bool;
    fn is_off(
        &self,
        feature_name: &str,
        user_attributes: Option<Vec<GrowthBookAttribute>>,
    ) -> bool;
    fn feature_result(
        &self,
        feature_name: &str,
        user_attributes: Option<Vec<GrowthBookAttribute>>,
    ) -> FeatureResult;
    fn total_features(&self) -> usize;
}

Required Methods§

Source

fn is_on( &self, feature_name: &str, user_attributes: Option<Vec<GrowthBookAttribute>>, ) -> bool

Source

fn is_off( &self, feature_name: &str, user_attributes: Option<Vec<GrowthBookAttribute>>, ) -> bool

Source

fn feature_result( &self, feature_name: &str, user_attributes: Option<Vec<GrowthBookAttribute>>, ) -> FeatureResult

Source

fn total_features(&self) -> usize

Implementors§