pub struct Ledger { /* private fields */ }
Expand description
Represents a valid ledger containing all valid accounts and balanced transactions.
Implementations§
source§impl Ledger
impl Ledger
sourcepub fn accounts(&self) -> &HashMap<Account, AccountInfo>
pub fn accounts(&self) -> &HashMap<Account, AccountInfo>
Returns the information of accounts.
sourcepub fn commodities(&self) -> &HashMap<Currency, (Meta, Source)>
pub fn commodities(&self) -> &HashMap<Currency, (Meta, Source)>
Returns all the currencies defined by commodity
directives.
sourcepub fn txns(&self) -> &Vec<Transaction>
pub fn txns(&self) -> &Vec<Transaction>
Returns transactions, pad
directives, and balance
directives, sorted
by date.
sourcepub fn balance_sheet(&self) -> &BalanceSheet
pub fn balance_sheet(&self) -> &BalanceSheet
Returns the final balances.
Trait Implementations§
source§impl PartialEq<Ledger> for Ledger
impl PartialEq<Ledger> for Ledger
impl Eq for Ledger
impl StructuralEq for Ledger
impl StructuralPartialEq for Ledger
Auto Trait Implementations§
impl RefUnwindSafe for Ledger
impl Send for Ledger
impl Sync for Ledger
impl Unpin for Ledger
impl UnwindSafe for Ledger
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more