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_hidden: bool

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

tags: Vec<&'a str>

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 shortcut
  • app_name - The name of the shortcut
  • exe - The target location
  • start_dir - The directory to launch the shortcut in (also known as working directory)
  • icon - Path to the icon of the shortcut
  • shortcut_path - The path to the shortcut.
  • launch_options - Options to pass to the exe in the target location

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.