Struct ledger_utils::simplified_ledger::Transaction
source · [−]pub struct Transaction {
pub comment: Option<String>,
pub date: NaiveDate,
pub effective_date: NaiveDate,
pub status: Option<TransactionStatus>,
pub code: Option<String>,
pub description: String,
pub postings: Vec<Posting>,
}
Fields
comment: Option<String>
date: NaiveDate
effective_date: NaiveDate
status: Option<TransactionStatus>
code: Option<String>
description: String
postings: Vec<Posting>
Trait Implementations
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Fails if any transactions are unbalanced, or if an unbalanced virtual posting
(account name in ()
) has no amount.
Ignores balance
s. Fails if they are necessary to fill in any omitted amount
s.
type Error = SimplificationError
type Error = SimplificationError
The type returned in the event of a conversion error.
Auto Trait Implementations
impl RefUnwindSafe for Transaction
impl Send for Transaction
impl Sync for Transaction
impl Unpin for Transaction
impl UnwindSafe for Transaction
Blanket Implementations
Mutably borrows from an owned value. Read more