want v1.1.1 Want.Sort

Specialized functions for dealing with sort parameters in Phoenix requests.

Link to this section Summary

Link to this section Types

Link to this type

direction()

direction() :: :asc | :desc
Link to this type

result()

result() :: {:ok, sort()} | {:error, binary()}
Link to this type

sort()

sort() :: {field :: atom(), direction :: direction()}

Link to this section Functions

Link to this function

cast(input, opts)

cast(input :: any(), opts :: Keyword.t()) :: result()

Callback implementation for Want.Type.cast/2.

Link to this function

cast(field, opts, fields)