# ChecklistQuery

## pub enum ChecklistQuery

A query for searching checklists, composable with [`and`](https://dev.nominal.io/rust-client/ref/rust/nominal/core/enum.ChecklistQuery.md#method.and "nominal::core::ChecklistQuery::and")
and [`or`](https://dev.nominal.io/rust-client/ref/rust/nominal/core/enum.ChecklistQuery.md#method.or "nominal::core::ChecklistQuery::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`](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html), [`Clone`](https://doc.rust-lang.org/1.98.1/core/clone/trait.Clone.html)

**Auto traits**: [`Send`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Send.html), [`Sync`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Sync.html), [`Unpin`](https://doc.rust-lang.org/1.98.1/core/marker/trait.Unpin.html), [`UnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.UnwindSafe.html), [`RefUnwindSafe`](https://doc.rust-lang.org/1.98.1/core/panic/unwind_safe/trait.RefUnwindSafe.html)
