pub struct RegisterQuery<'ctx> {
pub account: AccountFilter<'ctx>,
pub date_range: DateRange,
pub conversion: Option<Conversion<'ctx>>,
pub sort: Sort,
}Expand description
Query to drive Ledger::register_entries.
Fields§
§account: AccountFilter<'ctx>Select the specified account if specified. Note this will be changed to a list of regex eventually.
date_range: DateRangeHalf-open date range to restrict transactions.
conversion: Option<Conversion<'ctx>>Optional currency conversion applied to every yielded amount and to the
running total. Only ConversionStrategy::Historical is supported.
See https://github.com/xkikeg/okane/issues/313.
sort: SortOrder in which the matching postings are yielded.
Trait Implementations§
Source§impl<'ctx> Debug for RegisterQuery<'ctx>
impl<'ctx> Debug for RegisterQuery<'ctx>
Auto Trait Implementations§
impl<'ctx> Freeze for RegisterQuery<'ctx>
impl<'ctx> RefUnwindSafe for RegisterQuery<'ctx>
impl<'ctx> Send for RegisterQuery<'ctx>
impl<'ctx> Sync for RegisterQuery<'ctx>
impl<'ctx> Unpin for RegisterQuery<'ctx>
impl<'ctx> UnsafeUnpin for RegisterQuery<'ctx>
impl<'ctx> UnwindSafe for RegisterQuery<'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