Skip to main content

action_args

Function action_args 

Source
pub fn action_args(n: &Notification, server_has_actions: bool) -> Vec<String>
Expand description

The actions array of a Notify call: default (the body click) and, when the toast offers buttons (cancel, do it now) and the server supports actions, those. Pairs of (key, label), flattened as the spec wants.