Enum alfred::Icon [] [src]

pub enum Icon<'a> {
    Path(Cow<'a, str>),
    File(Cow<'a, str>),
    FileType(Cow<'a, str>),
}

Item icons

Variants

Path to an image file on disk relative to the workflow directory.

Path to a file whose icon will be used.

UTI for a file type to use (e.g. public.folder).

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

Formats the value using the given formatter.

impl<'a> PartialEq for Icon<'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 Icon<'a>
[src]

impl<'a> Hash for Icon<'a>
[src]

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

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