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, Default, Clone
Auto traits: Send, Sync, Unpin, UnwindSafe, RefUnwindSafe