pub struct SteamApp {
    pub appid: u32,
    pub path: PathBuf,
    pub vdf: Table,
    pub name: Option<String>,
    pub last_user: Option<u64>,
}
Expand description

An instance of an installed Steam app.

Example

let mut steamdir = SteamDir::locate().unwrap();
let gmod = steamdir.app(&4000);
println!("{:#?}", gmod.unwrap());
SteamApp (
	appid: u32: 4000,
	path: PathBuf: "C:\\Program Files (x86)\\steamapps\\common\\GarrysMod",
	vdf: <steamy_vdf::Table>,
	name: Some(String: "Garry's Mod"),
	last_user: Some(u64: 76561198040894045) // This will be a steamid_ng::SteamID if the "steamid_ng" feature is enabled
)

Fields

appid: u32

The app ID of this Steam app.

path: PathBuf

The path to the installation directory of this Steam app.

Example: C:\Program Files (x86)\Steam\steamapps\common\GarrysMod

vdf: Tablename: Option<String>

The store name of the Steam app.

last_user: Option<u64>

The SteamID64 of the last Steam user that played this game on the filesystem.

This crate supports steamid-ng and can automatically convert this to a SteamID for you.

To enable this support, use the steamid_ng Cargo.toml feature.

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

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)

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.