pub struct FilterOptions {Show 13 fields
pub after: Option<DateTime<Local>>,
pub age: Option<Age>,
pub before: Option<DateTime<Local>>,
pub count: Option<usize>,
pub include_notes: bool,
pub negate: bool,
pub only_timed: bool,
pub search: Option<(SearchMode, CaseSensitivity)>,
pub section: Option<String>,
pub sort: Option<SortOrder>,
pub tag_filter: Option<TagFilter>,
pub tag_queries: Vec<TagQuery>,
pub unfinished: bool,
}Expand description
Aggregated filter parameters for the entry filter pipeline.
The pipeline applies filters in order: section → tags → tag values → search → date → only_timed → unfinished → negate → sort → count limit.
Fields§
§after: Option<DateTime<Local>>Lower bound for entry date (inclusive).
age: Option<Age>Which end to keep when limiting by count.
before: Option<DateTime<Local>>Upper bound for entry date (inclusive).
count: Option<usize>Maximum number of entries to return.
include_notes: boolWhether text search should include note content.
negate: boolInvert all filter results.
only_timed: boolOnly include entries with a recorded time interval.
search: Option<(SearchMode, CaseSensitivity)>Text search mode and case sensitivity.
section: Option<String>Section name to filter by. “All” means no section filtering.
sort: Option<SortOrder>Sort order for the final results.
tag_filter: Option<TagFilter>Tag membership filter.
tag_queries: Vec<TagQuery>Tag value queries (all must match).
unfinished: boolOnly include unfinished entries (no @done tag).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FilterOptions
impl RefUnwindSafe for FilterOptions
impl Send for FilterOptions
impl Sync for FilterOptions
impl Unpin for FilterOptions
impl UnsafeUnpin for FilterOptions
impl UnwindSafe for FilterOptions
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