View Source Want.Type behaviour (want v1.15.4)

Behaviour for type casting modules.

Summary

Types

@type opts() :: Keyword.t()
@type schema() :: map()

Callbacks

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