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 withfoo
*foo
- finds all todos with projects that ends withfoo
*foo*
- finds all todos with projects that containsfoo
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 withfoo
*foo
- finds all todos with contexts that ends withfoo
*foo*
- finds all todos with contexts that containsfoo
Special values:- none - select todos with no contexts
- any - select todos that have at least one context
List of all tags that a todo must include. The search supports very limited pattern matching:
foo*
- finds all todos with tags that starts withfoo
*foo
- finds all todos with tags that ends withfoo
*foo*
- finds all todos with tags that containsfoo
Special values:- none - select todos with no tags
- any - select todos that have at least one tag
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for TagFilter
impl UnwindSafe for TagFilter
Blanket Implementations
Mutably borrows from an owned value. Read more