Packages
split_thin_sdk
0.2.0-rc.1
Official Split by Harness SDK for feature flags (a.k.a. Split FME)
Current section
Files
Jump to
Current section
Files
lib/split/treatment_with_config.ex
defmodule Split.TreatmentWithConfig do
@moduledoc """
This module is a struct that represents a treatment with a configuration.
## Fields
* `:treatment` - The treatment string value
* `:config` - The treatment configuration string or nil if the treatment has no configuration
"""
defstruct treatment: "control",
config: nil
@type t :: %__MODULE__{
treatment: String.t(),
config: String.t() | nil
}
end