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.
- Lima
Parser Booking Types - Lima
Tolerance - 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.
- Posting
Cost - One of potentially a number of posting costs for an Interpolated posting.
- Posting
Costs - 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.
- Booking
Error - A booking error, either for an individual posting or for the transaction as a whole.
- Posting
Booking Error - A booking error for an individual posting.
- Sign
- Positive or negative, with zero being neither.
- Transaction
Booking Error - A booking error for the transaction as a whole.
Traits§
- Booking
Types - Cost
Spec - A cost specification, which may be rather loosely specified.
- Number
- The properties required for a decimal type to be usable for booking.
- Posting
Spec - The interface which must be supported by a posting to be bookable.
- Price
Spec - 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.