pub struct Mod {
pub modifier: String,
pub subtitle: String,
pub arg: String,
pub variables: Vec<(String, String)>,
}Expand description
An alternate action on a plugin item, Alfred’s mods.
Held on the item rather than looked up at activation time because the plugin process that produced it is long gone by then: the payload has to travel with the row.
Fields§
§modifier: StringModifier that selects it — ctrl, alt, shift, super. Kept as
the plugin wrote it, lowercased, so the frontend owns the display
spelling and the keybinding.
subtitle: StringRow text describing what this alternate does.
arg: StringPayload handed to the plugin instead of the item’s own arg.
variables: Vec<(String, String)>Variables for this alternate, merged the same way the item’s are.
Trait Implementations§
impl Eq for Mod
impl StructuralPartialEq for Mod
Auto Trait Implementations§
impl Forget for Mod
impl Freeze for Mod
impl RefUnwindSafe for Mod
impl Send for Mod
impl Sync for Mod
impl Unpin for Mod
impl UnsafeUnpin for Mod
impl UnwindSafe for Mod
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more