pub struct Item<'a> { /* private fields */ }Expand description
An Alfred script filter item.
Implementations
sourceimpl<'a> Item<'a>
impl<'a> Item<'a>
pub fn subtitle(self, value: impl Into<String<'a>>) -> Self
pub fn uid(self, value: impl Into<String<'a>>) -> Self
pub fn arg(self, value: impl Into<String<'a>>) -> Self
pub fn icon(self, value: impl Into<Icon<'a>>) -> Self
pub fn valid(self, value: impl Into<bool>) -> Self
pub fn matches(self, value: impl Into<String<'a>>) -> Self
pub fn autocomplete(self, value: impl Into<String<'a>>) -> Self
pub fn kind(self, value: impl Into<Kind>) -> Self
pub fn text(self, value: impl Into<Text<'a>>) -> Self
pub fn quicklook_url(self, value: impl Into<String<'a>>) -> Self
pub fn modifier(self, key: ModifierKey, data: ModifierData<'a>) -> Self
Trait Implementations
impl<'a> Eq for Item<'a>
impl<'a> StructuralEq for Item<'a>
impl<'a> StructuralPartialEq for Item<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Item<'a>
impl<'a> Send for Item<'a>
impl<'a> Sync for Item<'a>
impl<'a> Unpin for Item<'a>
impl<'a> UnwindSafe for Item<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more