Struct steamlocate::SteamApp[][src]

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

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 feature, build with cargo build --features steamid_ng

Trait Implementations

impl Clone for SteamApp[src]

impl Debug for SteamApp[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.