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

pub struct Conf {
    pub range: ItemRange,
    pub projects: Vec<String>,
    pub contexts: Vec<String>,
    pub tags: Vec<String>,
    pub regex: Option<String>,
    pub use_regex: bool,
    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>,
}

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

projects: Vec<String>

List of all project tags that a todo must include. The search supports very limited pattern matching:

  • foo* - finds all todos with projects that starts with foo
  • *foo - finds all todos with projects that ends with foo
  • *foo* - finds all todos with projects that contains foo Special values:
  • none - select todos with no contexts
  • any - select todos that have at least one context
contexts: Vec<String>

List of all context tags that a todo must include. The search supports very limited pattern matching:

  • foo* - finds all todos with contexts that starts with foo
  • *foo - finds all todos with contexts that ends with foo
  • *foo* - finds all todos with contexts that contains foo Special values:
  • none - select todos with no contexts
  • any - select todos that have at least one context
tags: Vec<String>

List of all tags that a todo must include. The search supports very limited pattern matching:

  • foo* - finds all todos with tags that starts with foo
  • *foo - finds all todos with tags that ends with foo
  • *foo* - finds all todos with tags that contains foo Special values:
  • none - select todos with no tags
  • any - select todos that have at least one tag
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

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

impl Clone for Conf[src]

impl Debug for Conf[src]

impl Default for Conf[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,