View Source Parameter.Types.Any (Parameter v0.7.0)
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
Any
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
Any
type will just return the same type value that is passed to dump function
examples
Examples
iex> Parameter.Types.Any.load(:any_atom)
{:ok, :any_atom}
iex> Parameter.Types.Any.load("some string")
{:ok, "some string"}
iex> Parameter.Types.Any.load(nil)
{:ok, nil}
Any
type will just return the same type value that is passed to load function
examples
Examples
iex> Parameter.Types.Any.load(:any_atom)
{:ok, :any_atom}
iex> Parameter.Types.Any.load("some string")
{:ok, "some string"}
iex> Parameter.Types.Any.load(nil)
{:ok, nil}
Always return :ok
, any value is valid