View Source Parameter.Types.AnyType (Parameter v0.12.1)

Any parameter type. It will accept any input value without validations. The same value loaded will be the same dumped.

Link to this section 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

Link to this section Functions

AnyType type will just return the same type value that is passed to dump function

examples

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

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