pub struct TransactionFilter {
pub account_id: Option<AccountId>,
pub category_id: Option<CategoryId>,
pub start_date: Option<NaiveDate>,
pub end_date: Option<NaiveDate>,
pub status: Option<TransactionStatus>,
pub limit: Option<usize>,
}Expand description
Options for filtering transactions
Fields§
§account_id: Option<AccountId>Filter by account
category_id: Option<CategoryId>Filter by category
start_date: Option<NaiveDate>Filter by date range start
end_date: Option<NaiveDate>Filter by date range end
status: Option<TransactionStatus>Filter by status
limit: Option<usize>Maximum number of transactions to return
Implementations§
Source§impl TransactionFilter
impl TransactionFilter
Sourcepub fn category(self, category_id: CategoryId) -> Self
pub fn category(self, category_id: CategoryId) -> Self
Filter by category
Sourcepub fn date_range(self, start: NaiveDate, end: NaiveDate) -> Self
pub fn date_range(self, start: NaiveDate, end: NaiveDate) -> Self
Filter by date range
Sourcepub fn status(self, status: TransactionStatus) -> Self
pub fn status(self, status: TransactionStatus) -> Self
Filter by status
Trait Implementations§
Source§impl Clone for TransactionFilter
impl Clone for TransactionFilter
Source§fn clone(&self) -> TransactionFilter
fn clone(&self) -> TransactionFilter
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TransactionFilter
impl Debug for TransactionFilter
Source§impl Default for TransactionFilter
impl Default for TransactionFilter
Source§fn default() -> TransactionFilter
fn default() -> TransactionFilter
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for TransactionFilter
impl RefUnwindSafe for TransactionFilter
impl Send for TransactionFilter
impl Sync for TransactionFilter
impl Unpin for TransactionFilter
impl UnwindSafe for TransactionFilter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more