Skip to main content

EventMatcher

Type Alias EventMatcher 

Source
pub type EventMatcher = Matcher<VcsEvents>;
Expand description

One matcher of an EventFilter: source, kind, and the MatchFields — phase and the five reserved labels a matcher may name.

Aliased Type§

pub struct EventMatcher {
    pub source: Option<Source>,
    pub kind: Option<String>,
    pub fields: MatchFields,
}

Fields§

§source: Option<Source>

The producer, by exact equality.

§kind: Option<String>

A glob over the kind’s kebab-case wire string, where * stands for any run of characters including none and every other character is itself.

§fields: MatchFields

The vocabulary’s dimensions and reserved labels the matcher names, by exact equality against what the envelope carries. A matcher naming a label the envelope did not stamp does not match it.