Struct todo_lib::tfilter::Conf[][src]

pub struct Conf {
Show 13 fields pub range: ItemRange, pub regex: Option<String>, pub use_regex: bool, pub include: TagFilter, pub exclude: TagFilter, pub all: TodoStatus, pub due: Option<DateRange>, pub thr: Option<DateRange>, pub rec: Option<Recurrence>, pub pri: Option<Priority>, pub tmr: Option<Timer>, pub created: Option<DateRange>, pub finished: Option<DateRange>,
}
Expand description

A rules for todo list filtering. Setting a field to None or empty vector means that the corresponding property is not checked. All text comparisons are case-insensitive.

Fields

range: ItemRange

Range of todo IDs

regex: Option<String>

A text that any of text, project, or context must contain

use_regex: bool

If it is true, regex is treated as regular expression. If use_regex is false, the value of regex is just a substring to search for

include: TagFilter

Todos must contain the following values to be included in the list.

exclude: TagFilterall: TodoStatus

All incomplete, completed, or both types of todos

due: Option<DateRange>

Search for a due date: any, no due date, or withing range

thr: Option<DateRange>

Search for a threshold date: any, no threshold date, or withing range

rec: Option<Recurrence>

Search for recurrent todos

pri: Option<Priority>

Search for todos with priority or priority range

tmr: Option<Timer>

Search for todos with timer related stuff: active, inactive, any time spent

created: Option<DateRange>

Search for a creation date: any, no create date, or withing range

finished: Option<DateRange>

Search for a finished date: any, no finish date, or withing range

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.