Struct ledger_utils::simplified_ledger::Ledger
source · [−]pub struct Ledger {
pub commodity_prices: Vec<CommodityPrice>,
pub transactions: Vec<Transaction>,
}
Expand description
Main document. Contains transactions and/or commodity prices.
Fields
commodity_prices: Vec<CommodityPrice>
transactions: Vec<Transaction>
Trait Implementations
Fails if any transactions are unbalanced, any balance assertions fail, or if an unbalanced
virtual posting (account name in ()
) has no amount.
“Balance assertions” are postings with both amount and balance provided. The calculated amount using the balance must match the given amount.
type Error = SimplificationError
type Error = SimplificationError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Ledger
impl UnwindSafe for Ledger
Blanket Implementations
Mutably borrows from an owned value. Read more