Struct steam_shortcuts_util::shortcut::Shortcut
source · [−]pub struct Shortcut<'a> {Show 17 fields
pub order: &'a str,
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: &'a str
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
sourceimpl<'a> Shortcut<'a>
impl<'a> Shortcut<'a>
sourcepub fn new(
order: &'a str,
app_name: &'a str,
exe: &'a str,
start_dir: &'a str,
icon: &'a str,
shortcut_path: &'a str,
launch_options: &'a str
) -> Self
pub fn new(
order: &'a str,
app_name: &'a str,
exe: &'a str,
start_dir: &'a str,
icon: &'a str,
shortcut_path: &'a str,
launch_options: &'a str
) -> Self
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
pub fn to_owned(&self) -> ShortcutOwned
Trait Implementations
impl<'a> Eq for Shortcut<'a>
impl<'a> StructuralEq for Shortcut<'a>
impl<'a> StructuralPartialEq for Shortcut<'a>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Shortcut<'a>
impl<'a> Send for Shortcut<'a>
impl<'a> Sync for Shortcut<'a>
impl<'a> Unpin for Shortcut<'a>
impl<'a> UnwindSafe for Shortcut<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more