want v1.2.0 Want.Type behaviour

Behaviour for type casting modules.

Link to this section Summary

Link to this section Types

Link to this type

opts()

opts() :: Keyword.t()
Link to this type

schema()

schema() :: map()

Link to this section Callbacks

Link to this callback

cast(input, arg2)

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