View Source Cyanide (cyanide v2.0.0)
Link to this section Summary
Link to this section Types
@type bson_type() :: float() | String.t() | bson_map() | [bson_type()] | Cyanide.Binary.t() | {integer(), binary()} | boolean() | nil | integer() | DateTime.t()
@type encodable_map() :: %{required(encodable_map_key()) => bson_type()}
Link to this section Functions
@spec encode(encodable_map()) :: {:ok, binary()} | {:error, :cannot_bson_encode}
@spec encode!(encodable_map()) :: binary()