pub enum Icon<'a> {
Path(Cow<'a, str>),
File(Cow<'a, str>),
FileType(Cow<'a, str>),
}Expand description
Item icons
Variants§
Path(Cow<'a, str>)
Path to an image file on disk relative to the workflow directory.
File(Cow<'a, str>)
Path to a file whose icon will be used.
FileType(Cow<'a, str>)
UTI for a file type to use (e.g. public.folder).
Implementations§
Trait Implementations§
impl<'a> Eq for Icon<'a>
impl<'a> StructuralPartialEq for Icon<'a>
Auto Trait Implementations§
impl<'a> Freeze for Icon<'a>
impl<'a> RefUnwindSafe for Icon<'a>
impl<'a> Send for Icon<'a>
impl<'a> Sync for Icon<'a>
impl<'a> Unpin for Icon<'a>
impl<'a> UnwindSafe for Icon<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more