Struct rusty_alfred::AlfredItemText
[−]
[src]
pub struct AlfredItemText { pub copy: Option<String>, pub largetype: Option<String>, }
The information for the text
field on an item.
If these are not defined, you will inherit Alfred's standard behaviour where the arg is copied to the Clipboard or used for Large Type.
Fields
copy: Option<String>
This defines the text the user will get when copying the selected result row with ⌘C.
largetype: Option<String>
This defines the text the user will get when displaying large type with ⌘L.
Methods
impl AlfredItemText
[src]
fn new() -> Self
Creates a default item text.
Use the builder methods for more customization.
fn copy<T>(self, copy: T) -> Self where
T: AsRef<str>,
T: AsRef<str>,
This defines the text the user will get when copying the selected result row with ⌘C.
fn largetype<T>(self, largetype: T) -> Self where
T: AsRef<str>,
T: AsRef<str>,
This defines the text the user will get when displaying large type with ⌘L.
Trait Implementations
impl Debug for AlfredItemText
[src]
impl PartialEq for AlfredItemText
[src]
fn eq(&self, __arg_0: &AlfredItemText) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &AlfredItemText) -> bool
This method tests for !=
.
impl Hash for AlfredItemText
[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