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

Types

t()

Feature

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 use nil if not specified)
  • rules (list of GrowthBook.FeatureRule.t/0) - List of rules that determine when and how the default_value gets overridden