Validate that the given value is a positive integer
Callback implementation for c:Ecto.Type.dump/1
c:Ecto.Type.dump/1
Callback implementation for c:Ecto.Type.load/1
c:Ecto.Type.load/1
Callback implementation for c:Ecto.Type.type/0
c:Ecto.Type.type/0
Validate that the given value is a positive integer.
## Examples
iex> EctoFields.PositiveInteger.cast(1) 1
iex> EctoFields.PositiveInteger.cast(0) :error
iex> EctoFields.PositiveInteger.cast(-10) :error
Callback implementation for c:Ecto.Type.dump/1.
Callback implementation for c:Ecto.Type.load/1.
Callback implementation for c:Ecto.Type.type/0.