Struct fxbox_taxonomy::selector::SetSelector
[−]
[src]
pub struct SetSelector { pub id: Exactly<Id<Set>>, pub parent: Exactly<Id<NodeId>>, pub tags: Vec<String>, pub kind: Exactly<ChannelKind>, pub push: Option<Period>, // some fields omitted }
A selector for one or more output channels.
Fields
id | If |
parent | If |
tags | Restrict results to channels that have all the tags in |
kind | If |
push | If |
Methods
impl SetSelector
fn new() -> Self
Create a new selector that accepts all input channels.
fn with_id(self, id: Id<Set>) -> Self
Selector to a channel with a specific id.
fn with_parent(self, id: Id<NodeId>) -> Self
Selector to channels with a specific parent.
fn with_kind(self, kind: ChannelKind) -> Self
Selector to channels with a specific kind.
fn with_tags(self, tags: Vec<String>) -> Self
Restrict to channels that have all the tags in tags
.
fn with_push(self, period: Period) -> Self
Restrict to channels that support push with the acceptable period
fn and(self, other: Self) -> Self
Restrict results to channels that are accepted by two selector.
fn matches(&self, channel: &Channel<Set>) -> bool
Determine if a channel is matched by this selector.