ChecklistQuery#

pub enum ChecklistQuery#

A query for searching checklists, composable with and and or.

Variants#

SearchText(String)#

Fuzzy full-text search against title and description.

Label(String)#

Filter by label.

Property(String, String)#

Filter by property key and value.

IsPublished(bool)#

Filter to published or unpublished checklists.

IsArchived(bool)#

Filter to archived or non-archived checklists.

Not(Box<ChecklistQuery>)#

Invert a sub-query.

And(Vec<ChecklistQuery>)#

All sub-queries must match.

Or(Vec<ChecklistQuery>)#

At least one sub-query must match.

Implementations#

impl ChecklistQuery
pub fn search_text(text: impl Into<String>) -> Self#
pub fn label(label: impl Into<String>) -> Self#
pub fn property(key: impl Into<String>, value: impl Into<String>) -> Self#
pub fn is_published(value: bool) -> Self#
pub fn is_archived(value: bool) -> Self#
pub fn negate(query: ChecklistQuery) -> Self#
pub fn and(queries: impl IntoIterator<Item = ChecklistQuery>) -> Self#
pub fn or(queries: impl IntoIterator<Item = ChecklistQuery>) -> Self#

Trait implementations#

Derived: Debug, Clone

Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe