pub struct App {
pub id: String,
pub name: String,
pub icon: Option<String>,
pub path: PathBuf,
pub installed: bool,
}Expand description
One application, as the desktop describes it.
Fields§
§id: StringThe desktop entry’s file name, e.g. view3d.desktop. This is the
identity mimeapps.list uses, so it is what a default is set to.
name: StringName=, for showing a person.
icon: Option<String>Icon=, when it has one.
path: PathBufWhere the entry was found — what gio launch is handed.
installed: boolWhether the program Exec= names can actually be run. See this
module’s doc for why this is the one thing Exec= is read for.
Trait Implementations§
impl Eq for App
impl StructuralPartialEq for App
Auto Trait Implementations§
impl Freeze for App
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnsafeUnpin for App
impl UnwindSafe for App
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