Expand description
Directive types representing all beancount directives.
Beancount has 12 directive types that can appear in a ledger file:
Transaction- The most common directive, recording transfers between accountsBalance- Assert that an account has a specific balanceOpen- Open an account for useClose- Close an accountCommodity- Declare a commodity/currencyPad- Automatically pad an account to match a balance assertionEvent- Record a life eventQuery- Store a named BQL queryNote- Add a note to an accountDocument- Link a document to an accountPrice- Record a price for a commodityCustom- Custom directive type
Structs§
- Archived
Balance - An archived
Balance - Archived
Close - An archived
Close - Archived
Commodity - An archived
Commodity - Archived
Custom - An archived
Custom - Archived
Document - An archived
Document - Archived
Event - An archived
Event - Archived
Note - An archived
Note - Archived
Open - An archived
Open - Archived
Pad - An archived
Pad - Archived
Posting - An archived
Posting - Archived
Price - An archived
Price - Archived
Query - An archived
Query - Archived
Transaction - An archived
Transaction - Balance
- A balance assertion directive.
- Balance
Resolver - The resolver for an archived
Balance - Close
- A close account directive.
- Close
Resolver - The resolver for an archived
Close - Commodity
- A commodity declaration directive.
- Commodity
Resolver - The resolver for an archived
Commodity - Custom
- A custom directive.
- Custom
Resolver - The resolver for an archived
Custom - Document
- A document directive.
- Document
Resolver - The resolver for an archived
Document - Event
- An event directive.
- Event
Resolver - The resolver for an archived
Event - Note
- A note directive.
- Note
Resolver - The resolver for an archived
Note - Open
- An open account directive.
- Open
Resolver - The resolver for an archived
Open - Pad
- A pad directive.
- PadResolver
- The resolver for an archived
Pad - Posting
- A posting within a transaction.
- Posting
Resolver - The resolver for an archived
Posting - Price
- A price directive.
- Price
Resolver - The resolver for an archived
Price - Query
- A query directive.
- Query
Resolver - The resolver for an archived
Query - Transaction
- A transaction directive.
- Transaction
Resolver - The resolver for an archived
Transaction
Enums§
- Archived
Directive - An archived
Directive - Archived
Meta Value - An archived
MetaValue - Archived
Price Annotation - An archived
PriceAnnotation - Directive
- All directive types in beancount.
- Directive
Priority - Directive ordering priority for sorting.
- Directive
Resolver - The resolver for an archived
Directive - Meta
Value - Metadata value types.
- Meta
Value Resolver - The resolver for an archived
MetaValue - Price
Annotation - Price annotation for a posting (@ or @@).
- Price
Annotation Resolver - The resolver for an archived
PriceAnnotation
Functions§
- sort_
directives - Sort directives by date, then by type priority.
Type Aliases§
- Metadata
- Metadata is a key-value map attached to directives and postings.