Struct rusty_alfred::AlfredItemMod
[−]
[src]
pub struct AlfredItemMod { pub valid: Option<bool>, pub arg: Option<String>, pub subtitle: Option<String>, }
Information about a specific modifier to an item.
Fields
valid: Option<bool>
Marks if the result is valid based on the modifier selection.
arg: Option<String>
The arg to be passed out if actioned with the modifier.
subtitle: Option<String>
The subtitle to be displayed while the modifier is pressed.
Methods
impl AlfredItemMod
[src]
fn new() -> Self
Creates an empty item modifier struct.
Use the builder methods for further customization.
fn valid(self, valid: bool) -> Self
Marks if the result is valid based on the modifier selection.
fn arg<T>(self, arg: T) -> Self where
T: AsRef<str>,
T: AsRef<str>,
The arg to be passed out if actioned with the modifier.
fn subtitle<T>(self, subtitle: T) -> Self where
T: AsRef<str>,
T: AsRef<str>,
The subtitle to be displayed while the modifier is pressed.
Trait Implementations
impl Debug for AlfredItemMod
[src]
impl PartialEq for AlfredItemMod
[src]
fn eq(&self, __arg_0: &AlfredItemMod) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AlfredItemMod) -> bool
This method tests for !=
.
impl Hash for AlfredItemMod
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more