View Source Flagsmith.Schemas.Features.FeatureState (flagsmith_engine v0.1.3)

Ecto schema representing a full Flagsmith feature definition and helpers to cast responses from the api.

Link to this section Summary

Link to this section Types

Specs

t() :: %Flagsmith.Schemas.Features.FeatureState{
  enabled: boolean() | nil,
  environment: integer() | nil,
  feature: Flagsmith.Schemas.Features.Feature.t() | nil,
  feature_segment: integer() | nil,
  feature_state_value: String.t() | nil,
  id: integer() | nil,
  identity: integer() | nil
}

Link to this section Functions

Link to this function

changeset(struct \\ %__MODULE__{}, params)

View Source

Specs

changeset(t(), map()) :: Ecto.Changeset.t()

Specs

from_response(element :: map() | [map()]) :: t() | any()