Enum rusty_alfred::AlfredItemType [] [src]

pub enum AlfredItemType {
    Default,
    File,
    FileSkipCheck,
}

Types for the type field on an AlfredItemType.

Variants

Tells Alfred to treat this item as a normal action. This is the default if not specified.

Tells Alfred to treat this item as a file.

By specifying "type": "file", this makes Alfred treat your result as a file on your system. This allows the user to perform actions on the file like they can with Alfred's standard file filters.

Tells Alfred to treat this item as a file but to also skip checking if the file exists.

When returning files, Alfred will check if the file exists before presenting that result to the user. This has a very small performance implication but makes the results as predictable as possible. If you would like Alfred to skip this check as you are certain that the files you are returning exist, you can use "type": "file:skipcheck".

Trait Implementations

impl Debug for AlfredItemType
[src]

Formats the value using the given formatter.

impl PartialEq for AlfredItemType
[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 AlfredItemType
[src]

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

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