Crate rusty_alfred [−] [src]
Rusty Alfred is a quick library built to interact with Alfred 3 via Script Filters in the JSON format.
Basic example:
use rusty_alfred::*; fn main() { let items = AlfredItems::new() .item(AlfredItem::new("First item") .subtitle("The first item's subtitle")) .item(AlfredItem::new("Second item") .subtitle("Another subtitle!")); println!("{}", items.to_json().unwrap()); }
Modules
errors |
Errors using error-chain. |
Structs
AlfredItem |
An item to be displayed in Alfred. Only the |
AlfredItemIcon |
Item icon information. |
AlfredItemMod |
Information about a specific modifier to an item. |
AlfredItemMods |
Information about the alternate functions of an item. |
AlfredItemText |
The information for the |
AlfredItems |
The parent for all Alfred items. This is what should be printed to |
Enums
AlfredItemIconType |
The type of icon for an item. |
AlfredItemType |
Types for the |