pub struct ShortcutBuilder { /* private fields */ }Expand description
A builder-pattern type to construct Shortcut objects.
Implementations§
Source§impl ShortcutBuilder
impl ShortcutBuilder
Sourcepub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
pub fn action(self, action: &impl IsA<ShortcutAction>) -> Self
The action that gets activated by this shortcut.
Sourcepub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
pub fn trigger(self, trigger: &impl IsA<ShortcutTrigger>) -> Self
The trigger that triggers this shortcut.