fsmx v0.2.1 Fsmx View Source

Link to this section Summary

Link to this section Functions

Link to this function

transition(struct, new_state)

View Source

Specs

transition(struct(), binary()) :: {:ok, struct()} | {:error, any()}
Link to this function

transition_changeset(schema, new_state, params \\ %{})

View Source

Specs

transition_changeset(struct(), binary(), map()) :: Ecto.Changeset.t()
Link to this function

transition_multi(multi, schema, id, new_state, params \\ %{})

View Source

Specs

transition_multi(Ecto.Multi.t(), struct(), any(), binary(), map()) ::
  Ecto.Multi.t()