pub struct ApplicationEntry {
pub id: Rc<str>,
pub name: Rc<str>,
pub exec: Option<Rc<str>>,
pub icon: Option<Rc<str>>,
}Expand description
And data structure representing an application
It contains a subset of the fields from an XDG desktop entry file
Fields§
§id: Rc<str>The application’s id
The filename of the desktop entry file without the .desktop extension and is used
to uniquely identify an application
name: Rc<str>The application’s name
The name that is displayed to the user in the application menu, taskbar, etc.
exec: Option<Rc<str>>The application’s executable
The absolute path to the application’s executable, obtained from the Exec field in
the desktop entry file
icon: Option<Rc<str>>The application’s icon
If available, taken verbatim from the Icon field in the desktop entry file
Trait Implementations§
Source§impl Clone for ApplicationEntry
impl Clone for ApplicationEntry
Source§fn clone(&self) -> ApplicationEntry
fn clone(&self) -> ApplicationEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ApplicationEntry
impl RefUnwindSafe for ApplicationEntry
impl !Send for ApplicationEntry
impl !Sync for ApplicationEntry
impl Unpin for ApplicationEntry
impl UnwindSafe for ApplicationEntry
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