Struct rusty_alfred::AlfredItems [] [src]

pub struct AlfredItems {
    pub items: Vec<AlfredItem>,
}

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

Fields

The items to be displayed in Alfred.

Methods

impl AlfredItems
[src]

Makes an empty items container.

Adds an item to this container. This retains the order of items, but Alfred may not display them in that order if the items have uids.

Attempts to use serde to convert this container to JSON. The resulting JSON is ready to be given to Alfred.

Trait Implementations

impl Debug for AlfredItems
[src]

Formats the value using the given formatter.

impl PartialEq for AlfredItems
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Hash for AlfredItems
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Default for AlfredItems
[src]

Returns the "default value" for a type. Read more