pub struct LaunchAction {
pub file: String,
pub parameters: Option<LaunchParameters>,
pub new_window: Option<bool>,
}Expand description
Launch action - launch an application
Fields§
§file: StringApplication or document to launch
parameters: Option<LaunchParameters>Launch parameters
new_window: Option<bool>Whether to open in new window
Implementations§
Source§impl LaunchAction
impl LaunchAction
Sourcepub fn application(app: impl Into<String>) -> Self
pub fn application(app: impl Into<String>) -> Self
Launch application
Sourcepub fn with_params(self, params: impl Into<String>) -> Self
pub fn with_params(self, params: impl Into<String>) -> Self
Set simple parameters
Sourcepub fn with_windows_params(self, params: WindowsLaunchParams) -> Self
pub fn with_windows_params(self, params: WindowsLaunchParams) -> Self
Set Windows-specific parameters
Sourcepub fn in_new_window(self, new_window: bool) -> Self
pub fn in_new_window(self, new_window: bool) -> Self
Set whether to open in new window
Sourcepub fn to_dict(&self) -> Dictionary
pub fn to_dict(&self) -> Dictionary
Convert to dictionary
Trait Implementations§
Source§impl Clone for LaunchAction
impl Clone for LaunchAction
Source§fn clone(&self) -> LaunchAction
fn clone(&self) -> LaunchAction
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 LaunchAction
impl RefUnwindSafe for LaunchAction
impl Send for LaunchAction
impl Sync for LaunchAction
impl Unpin for LaunchAction
impl UnwindSafe for LaunchAction
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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