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

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()
Link to this function

composite_key(identity, environment_key)

View Source
Link to this function

from_id_traits(identifier, traits, environment_key \\ nil)

View Source

Specs

from_response(element :: map() | [map()]) :: t() | any()
Link to this function

set_env_key(struct, environment_key)

View Source