[−][src]Struct alfred::ModifierData
Optional overrides of subtitle, arg, and valid for modifiers.
Fields
subtitle: Option<Cow<'a, str>>
The subtitle to use for the current modifier.
arg: Option<Cow<'a, str>>
The arg to use for the current modifier.
valid: Option<bool>
The validity to use for the current modifier.
icon: Option<Icon<'a>>
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: HashMap<Cow<'a, str>, Cow<'a, str>>
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]
impl<'a> ModifierData<'a>
[src]
pub fn new() -> ModifierData<'a>
[src]
Returns a new ModifierData
where all fields are None
.
Trait Implementations
impl<'a> PartialEq<ModifierData<'a>> for ModifierData<'a>
[src]
fn eq(&self, other: &ModifierData<'a>) -> bool
[src]
fn ne(&self, other: &ModifierData<'a>) -> bool
[src]
impl<'a> Default for ModifierData<'a>
[src]
fn default() -> ModifierData<'a>
[src]
impl<'a> Clone for ModifierData<'a>
[src]
fn clone(&self) -> ModifierData<'a>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Eq for ModifierData<'a>
[src]
impl<'a> Debug for ModifierData<'a>
[src]
Auto Trait Implementations
impl<'a> Send for ModifierData<'a>
impl<'a> Unpin for ModifierData<'a>
impl<'a> Sync for ModifierData<'a>
impl<'a> RefUnwindSafe for ModifierData<'a>
impl<'a> UnwindSafe for ModifierData<'a>
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,