Machinist.Transition behaviour (Machinist v2.1.2) View Source

Machinist.Transition module behaviour

Link to this section Summary

Link to this section Callbacks

Specs

transit(struct(), [{:event, String.t()}]) ::
  {:ok, struct()} | {:error, :not_allowed | String.t()}