View Source Poison.Decoder protocol (Poison v6.0.0)

Summary

Types

t()

All the types that implement this protocol.

Types

@type as() :: map() | struct() | [as()] | (t() -> as())
@type decimal() :: boolean()
@type keys() :: :atoms | :atoms!
@type option() :: {:keys, keys()} | {:decimal, decimal()} | {:as, as()}
@type options() :: %{
  optional(:keys) => keys(),
  optional(:decimal) => decimal(),
  optional(:as) => as()
}
@type t() :: term()

All the types that implement this protocol.

Functions

@spec decode(t(), options()) :: any()