ValidateQuery v0.1.0 ValidateQuery.Params View Source

This module is responsible for parsing the options as received in the Plug.init/1 callback to a usable struct.

Link to this section Summary

Link to this section Types

Link to this type

allowed() View Source
allowed() :: :any | MapSet.t() | [] | map()

Link to this type

cast() View Source
cast() :: :list | :integer | :boolean | nil

Link to this type

default() View Source
default() :: term() | nil

Link to this type

opts() View Source
opts() :: {allowed()} | {allowed(), cast()} | {allowed(), cast(), default()}

Link to this type

t() View Source
t() :: %ValidateQuery.Params{
  allowed: allowed(),
  cast: cast(),
  default: default(),
  key: String.t()
}

Link to this section Functions

Link to this function

cast(arg) View Source
cast({atom(), list() | opts()}) :: t()