View Source GrowthBook.Feature (GrowthBook v0.3.0)
Struct holding Feature configuration.
Holds the feature's default value, along with the feature's rules.
Link to this section Summary
Link to this section Types
Specs
t() :: %GrowthBook.Feature{ default_value: term() | nil, rules: [GrowthBook.FeatureRule.t()] | nil }
Feature
A Feature consists of a default value plus rules that can override the default.
- default_value (
term/0
) - The default value (should usenil
if not specified) - rules (list of
GrowthBook.FeatureRule.t/0
) - List of rules that determine when and how thedefault_value
gets overridden