#[non_exhaustive]pub struct RegisterEntry<'lend, 'ctx> {
pub date: NaiveDate,
pub payee: &'ctx str,
pub account: Account<'ctx>,
pub amount: &'lend Amount<'ctx>,
pub total: &'lend Amount<'ctx>,
}Expand description
A row of the register report.
Yielded by RegisterEntries. total is the running cumulative amount
across all matched postings up to and including this one; the borrow is
invalidated by the next call to [Lender::next].
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.date: NaiveDateDate of the enclosing transaction.
payee: &'ctx strPayee of the posting (per-posting ; Payee: override falls back to the
enclosing transaction’s payee).
account: Account<'ctx>Account of the matched posting.
amount: &'lend Amount<'ctx>Amount of the matched posting. If conversion is configured this is the converted amount.
total: &'lend Amount<'ctx>Running cumulative amount across all matched postings up to and including this row.
Trait Implementations§
Auto Trait Implementations§
impl<'lend, 'ctx> Freeze for RegisterEntry<'lend, 'ctx>
impl<'lend, 'ctx> RefUnwindSafe for RegisterEntry<'lend, 'ctx>
impl<'lend, 'ctx> Send for RegisterEntry<'lend, 'ctx>
impl<'lend, 'ctx> Sync for RegisterEntry<'lend, 'ctx>
impl<'lend, 'ctx> Unpin for RegisterEntry<'lend, 'ctx>
impl<'lend, 'ctx> UnsafeUnpin for RegisterEntry<'lend, 'ctx>
impl<'lend, 'ctx> UnwindSafe for RegisterEntry<'lend, 'ctx>
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