ExCedar.Decimal (ex_cedar v0.1.2)

Copy Markdown View Source

Cedar decimal extension value.

Construct with new/1 and use in entity attributes or request context maps. Cedar encodes these as {"__extn": {"fn": "decimal", "arg": value}}.

ExCedar.Decimal.new("3.14")

Summary

Functions

Wraps a decimal string in a Decimal extension value struct.

Types

t()

@type t() :: %ExCedar.Decimal{value: String.t()}

Functions

new(value)

@spec new(String.t()) :: t()

Wraps a decimal string in a Decimal extension value struct.