Skip to main content

matching_subscriptions

Function matching_subscriptions 

Source
pub fn matching_subscriptions<'a>(
    subs: &'a [GotifySubscription],
    resolved_app: Option<&str>,
    priority: u8,
) -> Vec<&'a GotifySubscription>
Expand description

The subscriptions whose min_priority and applications filters priority and resolved_app satisfy, in set order. resolved_app is the message’s application NAME resolved from the app index; an unresolved appid matches only an empty (match-any) filter set, never a filter that happens to list the id numerically.