confex v3.3.1 Confex.Type

This module is responsible for Confex type-casting.

Link to this section Summary

Functions

Parse string and cast it to Elixir type

Link to this section Types

Link to this type t()
t() ::
  :string |
  :integer |
  :float |
  :boolean |
  :atom |
  :module |
  :list |
  {module :: module(), function :: atom(), additional_arguments :: list()}
Link to this type value()
value() :: String.t() | nil

Link to this section Functions

Link to this function cast(value, arg2)
cast(value :: value(), type :: t()) ::
  {:ok, any()} |
  {:error, String.t()}

Parse string and cast it to Elixir type.