View Source argo_desc_value (argo v1.0.6)
Summary
Types
-type desc_boolean() :: boolean().
-type desc_bytes() :: binary().
-type desc_float() :: float().
-type desc_int() :: argo_types:i64().
-type desc_list() :: [t()].
-type desc_null() :: null.
-type desc_object() :: argo_index_map:t(unicode:unicode_binary(), t()).
-type desc_string() :: unicode:unicode_binary().
-type inner() :: inner_nested() | inner_scalar().
-type inner_nested() :: {object, desc_object()} | {list, desc_list()}.
-type inner_scalar() :: desc_null() | {boolean, desc_boolean()} | {string, desc_string()} | {bytes, desc_bytes()} | {int, desc_int()} | {float, desc_float()}.
-type t() :: #argo_desc_value{inner :: argo_desc_value:inner()}.
Functions
-spec boolean(desc_boolean()) -> DescValue when DescValue :: t().
-spec bytes(desc_bytes()) -> DescValue when DescValue :: t().
-spec float(desc_float()) -> DescValue when DescValue :: t().
-spec null() -> DescValue when DescValue :: t().
-spec object(desc_object()) -> DescValue when DescValue :: t().
-spec string(desc_string()) -> DescValue when DescValue :: t().