Struct steam_shortcuts_util::shortcut::Shortcut [−][src]
pub struct Shortcut<'a> {Show 17 fields
pub order: usize,
pub app_id: u32,
pub app_name: &'a str,
pub exe: &'a str,
pub start_dir: &'a str,
pub icon: &'a str,
pub shortcut_path: &'a str,
pub launch_options: &'a str,
pub is_hidden: bool,
pub allow_desktop_config: bool,
pub allow_overlay: bool,
pub open_vr: u32,
pub dev_kit: u32,
pub dev_kit_game_id: &'a str,
pub dev_kit_overrite_app_id: u32,
pub last_play_time: u32,
pub tags: Vec<&'a str>,
}
Expand description
Struct with data for a steam shortcut.vdf file.
Fields
order: usize
Order/Index of the shortcut
app_id: u32
The id for this shortcut.
This id can be generated for a shortcut (in a way that steam will accept) with calculate_app_id
app_name: &'a str
The app name for this shortcut.
exe: &'a str
the target location
start_dir: &'a str
The directory to launch the shortcut in (also known as working directory).
icon: &'a str
Path to the icon of the shortcut
shortcut_path: &'a str
The path to the shortcut.
launch_options: &'a str
Options to pass to the exe in the target location
Is this shortcut hidden?
allow_desktop_config: bool
Is dekstop configuration allowed
allow_overlay: bool
Are steam overlays allowed
open_vr: u32
Open vr id
dev_kit: u32
Devkit id
dev_kit_game_id: &'a str
Devkit game id
dev_kit_overrite_app_id: u32
Devkit overrite_app_id
last_play_time: u32
The last time played in u32 seconds
A list of tags for this shortcut
The tags: “Installed”, “Ready TO Play” are recommended
Implementations
Create a new shortcut with sensible defaults.
Arguments
order
- The order/index of the shortcutapp_name
- The name of the shortcutexe
- The target locationstart_dir
- The directory to launch the shortcut in (also known as working directory)icon
- Path to the icon of the shortcutshortcut_path
- The path to the shortcut.launch_options
- Options to pass to the exe in the target location
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Shortcut<'a>
impl<'a> UnwindSafe for Shortcut<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more