Current section

Files

Jump to
gleam_bson src bson@types.erl
Raw

src/bson@types.erl

-module(bson@types).
-compile([no_auto_import, nowarn_unused_vars]).
-export_type([value/0, binary_/0, kind/0, sub_kind/0]).
-type value() :: min |
max |
null |
{js, binary()} |
{str, binary()} |
{integer, integer()} |
{double, float()} |
{boolean, boolean()} |
{date_time, birl@time:time()} |
{binary, binary_()} |
{timestamp, integer()} |
{array, list(value())} |
{object_id, bson@object_id:object_id()} |
{regex, {binary(), binary()}} |
{document, list({binary(), value()})}.
-type binary_() :: {md5, bson@md5:md5()} |
{uuid, bson@uuid:uuid()} |
{custom, bson@custom:custom()} |
{generic, bson@generic:generic()}.
-type kind() :: {kind, bitstring()}.
-type sub_kind() :: {sub_kind, bitstring()}.