#[non_exhaustive]pub struct URLItem { /* private fields */ }Implementations§
Source§impl URLItem
impl URLItem
pub fn new(title: impl Into<String>, url: impl Into<String>) -> Self
pub fn subtitle(self, subtitle: impl Into<String>) -> Self
pub fn short_title(self, short_title: impl Into<String>) -> Self
pub fn icon_for_filetype(self, filetype: impl Into<String>) -> Self
pub fn icon_from_image(self, path_to_image: impl Into<String>) -> Self
pub fn display_title(self, display_title: impl Into<String>) -> Self
pub fn long_title(self, long_title: impl Into<String>) -> Self
pub fn copy_text(self, copy_text: impl Into<String>) -> Self
pub fn arg(self, arg: impl Into<String>) -> Self
pub fn var(self, key: impl Into<String>, value: impl Into<String>) -> Self
Trait Implementations§
Source§impl<'de> Deserialize<'de> for URLItem
impl<'de> Deserialize<'de> for URLItem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for URLItem
Auto Trait Implementations§
impl Freeze for URLItem
impl RefUnwindSafe for URLItem
impl Send for URLItem
impl Sync for URLItem
impl Unpin for URLItem
impl UnwindSafe for URLItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more