pub struct RegisterEntry {
pub date: NaiveDate,
pub status: TransactionStatus,
pub payee: Option<String>,
pub narration: Option<String>,
pub account: AccountName,
pub amount: Option<Amount>,
pub balance: Vec<(CommodityName, Decimal)>,
}Expand description
A single line of a register listing: one matched posting, along
with the transaction it belongs to and the running balance of the
register up to (and including) this line.
Fields§
§date: NaiveDateDate of the transaction containing the matched posting.
status: TransactionStatusCleared, pending or uncleared status of the transaction.
payee: Option<String>Optional transaction payee.
narration: Option<String>Optional transaction narration.
account: AccountNameAccount of the matched posting.
amount: Option<Amount>Amount of the matched posting, if it was explicitly or implicitly set.
balance: Vec<(CommodityName, Decimal)>Running balance of the register, per commodity, after this entry. Only postings with an amount contribute to it.
Trait Implementations§
Source§impl Clone for RegisterEntry
impl Clone for RegisterEntry
Source§impl Debug for RegisterEntry
impl Debug for RegisterEntry
Source§impl PartialEq for RegisterEntry
impl PartialEq for RegisterEntry
impl StructuralPartialEq for RegisterEntry
Auto Trait Implementations§
impl Freeze for RegisterEntry
impl RefUnwindSafe for RegisterEntry
impl Send for RegisterEntry
impl Sync for RegisterEntry
impl Unpin for RegisterEntry
impl UnsafeUnpin for RegisterEntry
impl UnwindSafe for RegisterEntry
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