DatasetQuery#

pub enum DatasetQuery#

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

Variants#

SearchText(String)#

Fuzzy full-text search against name and description.

SubstringMatch(String)#

Case-insensitive substring match against the dataset name.

Label(String)#

Filter by label.

Property(String, String)#

Filter by property key and value.

And(Vec<DatasetQuery>)#

All sub-queries must match.

Or(Vec<DatasetQuery>)#

At least one sub-query must match.

Implementations#

impl DatasetQuery
pub fn search_text(text: impl Into<String>) -> Self#
pub fn substring_match(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 and(queries: impl IntoIterator<Item = DatasetQuery>) -> Self#
pub fn or(queries: impl IntoIterator<Item = DatasetQuery>) -> Self#

Trait implementations#

Derived: Debug, Clone

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