Module okane_core::repl
source · Expand description
repl represents Ledger file format representation. Note the structure is quite similar to data module, however, repl is for textual representation while data is more for understanding.
Re-exports
pub use crate::datamodel::ClearState;
Modules
- repl::display contains data & functions for displaying repl data.
- Defines value expression representation used in Ledger format. Note this is purely lexicographical and not always valid expression.
- Defines parser for the Ledger format.
Structs
- “account” directive to declare account information.
- “apply tag” directive content.
- “commodity” directive to declare commodity information.
- “include” directive, taking a path as an argument. Path can be a relative path or an absolute path.
- Lot information is a set of metadata to record the original lot which the commodity is acquired with.
- Posting in a transaction to represent a particular account amount increase / decrease.
- This is an amout for each posting. Which contains
- Top-level comment. OK to have multi-line comment.
- Represents a transaction where the money transfered across the accounts.
Enums
- Sub directives for “account” directive.
- Sub directives for “commodity” directive.
- Exchange represents the amount expressed in the different commodity.
- Top-level entry of the LedgerFile.
- Metadata represents meta information associated with transactions / posts.
- MetadataValue represents the value in key-value pair used in
Metadata.