pub struct DesktopAction {
pub name: LocaleString,
pub exec: Option<String>,
pub icon: Option<IconString>,
}
Expand description
Represents an application action, which defines an alternative way to launch an application with different parameters.
Actions are defined in the desktop file and allow applications to expose multiple entry points, such as “New Window” or “Private Browsing”.
Fields§
§name: LocaleString
The name of the action, which can be localized
exec: Option<String>
The command to execute when this action is triggered
icon: Option<IconString>
Optional icon specific to this action
Trait Implementations§
Source§impl Clone for DesktopAction
impl Clone for DesktopAction
Source§fn clone(&self) -> DesktopAction
fn clone(&self) -> DesktopAction
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DesktopAction
impl Debug for DesktopAction
Source§impl Default for DesktopAction
impl Default for DesktopAction
Source§fn default() -> DesktopAction
fn default() -> DesktopAction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DesktopAction
impl RefUnwindSafe for DesktopAction
impl Send for DesktopAction
impl Sync for DesktopAction
impl Unpin for DesktopAction
impl UnwindSafe for DesktopAction
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