# ChannelQuery

## pub struct ChannelQuery

A query for searching channels.

All fields are AND’d together. An empty query (the default) matches every
channel the caller is authorized to see.

## Implementations

### impl ChannelQuery

#### pub fn new() -> Self

#### pub fn data_source(self, rid: impl Into<String>) -> Self

Restrict the search to channels on a specific data source. Repeatable.

#### pub fn data_sources<I, S>(self, rids: I) -> Self where I: IntoIterator<Item = S>, S: Into<String>

Restrict the search to channels on any of the given data sources.

#### pub fn substring_match(self, text: impl Into<String>) -> Self

Require the channel name to contain this substring (case-insensitive).
Repeatable; all required substrings must be present.

#### pub fn data_type(self, data_type: ChannelDataType) -> Self

Restrict the search to channels of the given data type. Repeatable.

## Trait implementations

**Derived**: [`Debug`](https://doc.rust-lang.org/1.98.1/core/fmt/trait.Debug.html), [`Default`](https://doc.rust-lang.org/1.98.1/core/default/trait.Default.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)
