Struct steamlocate::SteamApp
source · [−]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: Table
name: 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
Auto Trait Implementations
impl RefUnwindSafe for SteamApp
impl UnwindSafe for SteamApp
Blanket Implementations
Mutably borrows from an owned value. Read more