Struct todo_lib::tfilter::TagFilter[][src]

pub struct TagFilter {
    pub projects: Vec<String>,
    pub contexts: Vec<String>,
    pub tags: Vec<String>,
}
Expand description

Filter rules for special entities: projects, contexts, tags.

Fields

projects: Vec<String>

List of all project 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 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

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

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.