pub struct CreateShortcutConfig {
pub link_file: PathBuf,
pub target_file: PathBuf,
pub working_dir: PathBuf,
pub args: Vec<String>,
pub app_id: String,
pub name: String,
pub icon: PathBuf,
}Expand description
Config for CreateShortcut.
Fields§
§link_file: PathBufPath to the shortcut, without extension.
target_file: PathBufPath to the shortcut target executable file.
working_dir: PathBufPath to the initial current_dir of the executable.
§Default
Empty is the target_file parent executable.
args: Vec<String>Arguments to pass the executable.
app_id: StringGlobally unique app ID.
This is only used on Windows to set the AUMID on the shortcut, this must be
the same value as zng::env::About::windows_aumid on the app executable. Note that
if the app does not have a shortcut on the Start Menu that defines the ID notifications
and other shell integrations will not work properly.
§Default
If this is empty the zng::env::About::windows_aumid value is used. Note that this is only valid
if the setup app is defined on the same app executable.
name: String§icon: PathBufOptional icon for the shortcut.
§Default
Empty is the target_file icon 0 in Windows, and no icon in Linux.
Implementations§
Source§impl CreateShortcutConfig
impl CreateShortcutConfig
Sourcepub fn new(link_file: PathBuf, target_file: PathBuf) -> CreateShortcutConfig
pub fn new(link_file: PathBuf, target_file: PathBuf) -> CreateShortcutConfig
New with minimal required config.
Auto Trait Implementations§
impl Freeze for CreateShortcutConfig
impl RefUnwindSafe for CreateShortcutConfig
impl Send for CreateShortcutConfig
impl Sync for CreateShortcutConfig
impl Unpin for CreateShortcutConfig
impl UnsafeUnpin for CreateShortcutConfig
impl UnwindSafe for CreateShortcutConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<S, T> Duplex<S> for Twhere
T: FromSample<S> + ToSample<S>,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
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>
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