Skip to main content

Crate limabean_booking

Crate limabean_booking 

Source
Expand description

§limabean-booking

This is a generic implementation of the Beancount booking algorithm, with no dependencies on either the Lima parser nor limabean itself.

For further information see the API documentation.

Structs§

Bookings
The interpolated postings and updated inventory after booking all postings in a transaction.
Cost
A cost complete with any fields which were missing from its CostSpec.
Interpolated
An interpolated posting is one complete with any fields which were missing from its PostingSpec.
Inventory
All account positions.
LimaParserBookingTypes
LimaTolerance
tolerance converted from parser options allowing for currency lookup by string
Position
A single position in a currency, optionally at given cost.
Positions
The list of positions for an account.
PostingCost
One of potentially a number of posting costs for an Interpolated posting.
PostingCosts
The list of posting costs for an Interpolated posting.
Price
A price complete with any fields which were missing from its PriceSpec.

Enums§

Booking
The booking method for an account.
BookingError
A booking error, either for an individual posting or for the transaction as a whole.
PostingBookingError
A booking error for an individual posting.
Sign
Positive or negative, with zero being neither.
TransactionBookingError
A booking error for the transaction as a whole.

Traits§

BookingTypes
CostSpec
A cost specification, which may be rather loosely specified.
Number
The properties required for a decimal type to be usable for booking.
PostingSpec
The interface which must be supported by a posting to be bookable.
PriceSpec
A price specification, which may be rather loosely specified.
Tolerance

Functions§

book
Book the postings for the given date, returning updated inventory and interpolated postings. The interpolated postings are aligned with the original postings, in that they may be zipped together and will always correspond.
is_supported_method
Whether the given booking method is supported by this crate.

Type Aliases§

CostSpecCurrency
CostSpecDate
CostSpecLabel
CostSpecNumber
PostingSpecAccount
PostingSpecCurrency
PostingSpecNumber
PriceSpecCurrency
PriceSpecNumber
ToleranceCurrency
ToleranceNumber