Skip to main content

FilterOptions

Struct FilterOptions 

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

Whether text search should include note content.

§negate: bool

Invert all filter results.

§only_timed: bool

Only 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: bool

Only include unfinished entries (no @done tag).

Trait Implementations§

Source§

impl Default for FilterOptions

Source§

fn default() -> Self

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

Auto Trait Implementations§

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 = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

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.