Want.Type behaviour (want v1.9.0)

Behaviour for type casting modules.

Link to this section Summary

Link to this section Types

Specs

opts() :: Keyword.t()

Specs

schema() :: map()

Link to this section Callbacks

Link to this callback

cast(input, arg2)

Specs

cast(input :: any(), opts() | schema()) ::
  {:ok, result :: any()} | {:error, reason :: any()}