View Source Parameter.Types.AnyType (Parameter v0.14.1)
Any parameter type. It will accept any input value without validations. The same value loaded will be the same dumped.
Summary
Functions
AnyType
type will just return the same type value that is passed to dump function
Any
type will just return the same type value that is passed to load function
Always return :ok
, any value is valid
Functions
AnyType
type will just return the same type value that is passed to dump function
Examples
iex> Parameter.Types.AnyType.load(:any_atom)
{:ok, :any_atom}
iex> Parameter.Types.AnyType.load("some string")
{:ok, "some string"}
iex> Parameter.Types.AnyType.load(nil)
{:ok, nil}
Any
type will just return the same type value that is passed to load function
Examples
iex> Parameter.Types.AnyType.load(:any_atom)
{:ok, :any_atom}
iex> Parameter.Types.AnyType.load("some string")
{:ok, "some string"}
iex> Parameter.Types.AnyType.load(nil)
{:ok, nil}
Always return :ok
, any value is valid