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: TagFilter
all: 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
Auto Trait Implementations
impl RefUnwindSafe for Conf
impl UnwindSafe for Conf
Blanket Implementations
Mutably borrows from an owned value. Read more