steam-user 0.1.0

Steam User web client for Rust - HTTP-based Steam Community interactions
Documentation
use serde::{Deserialize, Serialize};
use steamid::SteamID;

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct FriendsGameplayInfo {
    pub steam_id: SteamID,
    pub minutes_played: u32,
    pub minutes_played_forever: u32,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct OwnGameplayInfo {
    pub steam_id: SteamID,
    pub minutes_played: u32,
    pub minutes_played_forever: u32,
    pub in_wishlist: bool,
    pub owned: bool,
}

#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct GameplayInfoResponse {
    pub your_info: Option<OwnGameplayInfo>,
    pub in_game: Vec<FriendsGameplayInfo>,
    pub played_recently: Vec<FriendsGameplayInfo>,
    pub played_ever: Vec<FriendsGameplayInfo>,
    pub owns: Vec<FriendsGameplayInfo>,
    pub in_wishlist: Vec<FriendsGameplayInfo>,
}