WorkbookQuery#

pub enum WorkbookQuery#

A query for searching workbooks, 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.

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, Clone

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