Ecto.ParameterizedType.cast

You're seeing just the callback cast, go back to Ecto.ParameterizedType module for more information.

Specs

cast(data :: term(), params()) :: {:ok, term()} | :error | {:error, keyword()}

Casts the given input to the ParameterizedType with the given parameters.

If the parameterized type is also a composite type, the inner type can be cast by calling Ecto.Type.cast/2 directly.

For more information on casting, see Ecto.Type.cast/1.