pub struct GrowthBookClient {
pub gb: Arc<RwLock<GrowthBook>>,
pub cache: Option<Arc<dyn FeatureCache>>,
pub on_feature_usage: Option<OnFeatureUsageCallback>,
pub on_experiment_viewed: Option<OnExperimentViewedCallback>,
pub on_refresh: Vec<OnRefreshCallback>,
pub decryption_key: Option<String>,
/* private fields */
}Fields§
§gb: Arc<RwLock<GrowthBook>>§cache: Option<Arc<dyn FeatureCache>>§on_feature_usage: Option<OnFeatureUsageCallback>§on_experiment_viewed: Option<OnExperimentViewedCallback>§on_refresh: Vec<OnRefreshCallback>§decryption_key: Option<String>Implementations§
Trait Implementations§
Source§impl Clone for GrowthBookClient
impl Clone for GrowthBookClient
Source§fn clone(&self) -> GrowthBookClient
fn clone(&self) -> GrowthBookClient
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 GrowthBookClient
impl Debug for GrowthBookClient
Source§impl GrowthBookClientTrait for GrowthBookClient
impl GrowthBookClientTrait for GrowthBookClient
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
Auto Trait Implementations§
impl Freeze for GrowthBookClient
impl !RefUnwindSafe for GrowthBookClient
impl Send for GrowthBookClient
impl Sync for GrowthBookClient
impl Unpin for GrowthBookClient
impl !UnwindSafe for GrowthBookClient
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