View Source Flagsmith.Schemas.Identity (flagsmith_engine v0.1.8)

Ecto schema representing an object containing Flagsmith's flags and traits associated with an identity and helpers to cast responses from the api.

Link to this section Summary

Link to this section Types

Specs

t() :: %Flagsmith.Schemas.Identity{
  environment_key: String.t() | nil,
  flags: [Flagsmith.Schemas.Features.FeatureState.t()],
  identifier: String.t() | nil,
  traits: [Flagsmith.Schemas.Traits.Trait.t()]
}

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()