# WorkbookQuery

## pub enum WorkbookQuery

A query for searching workbooks, composable with [`and`](https://dev.nominal.io/rust-client/ref/rust/nominal/core/enum.WorkbookQuery.md#method.and "nominal::core::WorkbookQuery::and") and [`or`](https://dev.nominal.io/rust-client/ref/rust/nominal/core/enum.WorkbookQuery.md#method.or "nominal::core::WorkbookQuery::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.

### AssetRid(String)

Filter to workbooks attached to a given asset.

### RunRid(String)

Filter to workbooks attached to a given run.

### And(Vec<WorkbookQuery>)

All sub-queries must match.

### Or(Vec<WorkbookQuery>)

At least one sub-query must match.

## Implementations

### impl WorkbookQuery

#### pub fn search_text(text: impl Into<String>) -> Self

Fuzzy full-text search against title and description.

#### pub fn label(label: impl Into<String>) -> Self

Filter by label.

#### pub fn property(key: impl Into<String>, value: impl Into<String>) -> Self

Filter by property key and value.

#### pub fn asset_rid(rid: impl Into<String>) -> Self

Filter to workbooks attached to a given asset.

#### pub fn run_rid(rid: impl Into<String>) -> Self

Filter to workbooks attached to a given run.

#### pub fn and(queries: impl IntoIterator<Item = WorkbookQuery>) -> Self

All sub-queries must match.

#### pub fn or(queries: impl IntoIterator<Item = WorkbookQuery>) -> Self

At least one sub-query must match.

## 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)
