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

Represent self as a serde_json::Value. Note that Value is not a JSON string. If you need a string, use serde_json::to_string instead. Read more

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more