BowlineClient.Encode (bowline_client v1.2.0)

Copy Markdown View Source

Encoding helpers used by generated to_map/1 functions.

Summary

Functions

big_int(value)

@spec big_int(integer()) :: String.t()

bytes(value)

@spec bytes(binary()) :: String.t()

list(values, encode)

@spec list([term()], (term() -> term())) :: [term()]

map(values, encode)

@spec map(map(), (term() -> term())) :: map()

nullable(value, encode)

@spec nullable(term(), (term() -> term())) :: term()

optional(map, key, value, encode)

@spec optional(map(), String.t(), term(), (term() -> term())) :: map()

timestamp(value)

@spec timestamp(DateTime.t()) :: String.t()