Struct rusty_alfred::AlfredItemIcon [] [src]

pub struct AlfredItemIcon {
    pub icon_type: Option<AlfredItemIconType>,
    pub path: String,
}

Item icon information.

Fields

The type of icon this is. Defaults to None.

By omitting the "type", Alfred will load the file path itself, for example a png. By using "type": "fileicon", Alfred will get the icon for the specified path. Finally, by using "type": "filetype", you can get the icon of a specific file, for example "path": "public.png"

The path to the icon for this item, either absolute or relative to the workflow folder.

Methods

impl AlfredItemIcon
[src]

Creates an item icon pointing to path.

Use the builder methods for more customization.

The type of icon this is. Defaults to None.

By omitting the "type", Alfred will load the file path itself, for example a png. By using "type": "fileicon", Alfred will get the icon for the specified path. Finally, by using "type": "filetype", you can get the icon of a specific file, for example "path": "public.png"

The path to the icon for this item, either absolute or relative to the workflow folder.

Trait Implementations

impl Debug for AlfredItemIcon
[src]

Formats the value using the given formatter.

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

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

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