Struct alfred::ModifierData [] [src]

pub struct ModifierData<'a> {
    pub subtitle: Option<Cow<'a, str>>,
    pub arg: Option<Cow<'a, str>>,
    pub valid: Option<bool>,
    pub icon: Option<Icon<'a>>,
    pub variables: HashMap<Cow<'a, str>, Cow<'a, str>>,
    // some fields omitted
}

Optional overrides of subtitle, arg, and valid for modifiers.

Fields

The subtitle to use for the current modifier.

The arg to use for the current modifier.

The validity to use for the current modifier.

The result icon to use for the current modifier.

This icon is only supported when using JSON output. The legacy XML output format does not support per-modifier icons.

This icon is only used with Alfred 3.4.1 or later.

Variables to pass out of the script filter if the item is selected in Alfred's results using this modifier.

This property is only used with JSON output and only affects Alfred 3.4.1 or later.

Methods

impl<'a> ModifierData<'a>
[src]

Returns a new ModifierData where all fields are None.

Trait Implementations

impl<'a> Clone for ModifierData<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Debug for ModifierData<'a>
[src]

Formats the value using the given formatter.

impl<'a> PartialEq for ModifierData<'a>
[src]

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

This method tests for !=.

impl<'a> Eq for ModifierData<'a>
[src]

impl<'a> Default for ModifierData<'a>
[src]

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