Skip to main content

Module amount

Module amount 

Source
Expand description

Amount type representing a decimal number with a currency.

An Amount is the fundamental unit of value in Beancount, combining a decimal number with a currency code. It supports arithmetic operations and tolerance-based comparison for balance checking.

Structs§

Amount
An amount is a quantity paired with a currency.
AmountParseError
Error produced by the FromStr impl on Amount when the input doesn’t match the <number> <currency> shape that fmt::Display emits.
AmountResolver
The resolver for an archived Amount
ArchivedAmount
An archived Amount

Enums§

AmountParseErrorReason
Distinguishes the failure modes of Amount’s FromStr impl.
ArchivedIncompleteAmount
An archived IncompleteAmount
IncompleteAmount
An incomplete amount specification used in postings before interpolation.
IncompleteAmountResolver
The resolver for an archived IncompleteAmount