[][src]Struct freedesktop_desktop_entry::Application

pub struct Application<'a> {
    pub categories: &'a [&'a str],
    pub exec: &'a str,
    pub keywords: &'a [&'a str],
    pub mime_types: &'a [&'a str],
    pub path: Option<&'a str>,
    pub startup_notify: bool,
    pub startup_wm_class: Option<&'a str>,
    pub terminal: bool,
    pub try_exec: Option<&'a str>,
}

Fields

categories: &'a [&'a str]exec: &'a strkeywords: &'a [&'a str]mime_types: &'a [&'a str]path: Option<&'a str>startup_notify: boolstartup_wm_class: Option<&'a str>terminal: booltry_exec: Option<&'a str>

Methods

impl<'a> Application<'a>[src]

pub fn new(categories: &'a [&'a str], exec: &'a str) -> Self[src]

pub fn keywords(self, keywords: &'a [&'a str]) -> Self[src]

pub fn mime_types(self, mime_types: &'a [&'a str]) -> Self[src]

pub fn path(self, path: &'a str) -> Self[src]

pub fn startup_notify(self) -> Self[src]

pub fn startup_wm_class(self, startup_wm_class: &'a str) -> Self[src]

pub fn terminal(self) -> Self[src]

pub fn try_exec(self, try_exec: &'a str) -> Self[src]

Auto Trait Implementations

impl<'a> Send for Application<'a>

impl<'a> Unpin for Application<'a>

impl<'a> Sync for Application<'a>

impl<'a> UnwindSafe for Application<'a>

impl<'a> RefUnwindSafe for Application<'a>

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]