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 title attribute is required.

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 text field on an item.

AlfredItems

The parent for all Alfred items. This is what should be printed to stdout via to_json() for Alfred to display results.

Enums

AlfredItemIconType

The type of icon for an item.

AlfredItemType

Types for the type field on an AlfredItemType.