View Source parthenon_decode (parthenon v0.5.1)
Link to this section Summary
Link to this section Types
-type decode_options() :: #decode_options{}.
-type key_format() :: existing_atom | atom | binary.
-type object_format() :: maps | proplists | tuple.
-type option() :: {object_format, object_format()} | {key_format, key_format()}.
Link to this section Functions
-spec try_decode(SchemaName :: atom(), Binary :: binary()) -> {ok, term()} | {error, term()}.
-spec try_decode(SchemaName :: atom(), Binary :: binary(), Options :: [option()]) -> {ok, term()} | {error, term()}.