View Source Flagsmith.Schemas.Segments.Segment.Rule (flagsmith_engine v0.1.5)

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

Link to this section Summary

Link to this section Types

Specs

t() :: %Flagsmith.Schemas.Segments.Segment.Rule{
  conditions: [Flagsmith.Schemas.Segments.Segment.Condition.t()],
  rules: [t()],
  type: Flagsmith.Schemas.Types.Segment.Type.t() | 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()