Skip to main content

RegisterQuery

Struct RegisterQuery 

Source
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: DateRange

Half-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: Sort

Order in which the matching postings are yielded.

Trait Implementations§

Source§

impl<'ctx> Debug for RegisterQuery<'ctx>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'ctx> Default for RegisterQuery<'ctx>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.