Struct steam_api::structs::summaries::User [−][src]
pub struct User {Show 21 fields
pub steamid: String,
pub communityvisibilitystate: i32,
pub profilestate: i32,
pub personaname: String,
pub commentpermissions: Option<i32>,
pub profileurl: String,
pub avatar: String,
pub avatarmedium: String,
pub avatarfull: String,
pub avatarhash: String,
pub lastlogoff: Option<i32>,
pub personastate: i32,
pub realname: Option<String>,
pub primaryclanid: Option<String>,
pub timecreated: Option<i32>,
pub gameid: Option<String>,
pub gameserverip: Option<String>,
pub gameextrainfo: Option<String>,
pub loccountrycode: Option<String>,
pub locstatecode: Option<String>,
pub loccityid: Option<i32>,
}Expand description
communityvisibilitystate
Returns 3 if the profile is public
Otherwise the profile isn’t visible to you
Example output
3
relationship
Friends relationship to the specified Steam ID
friend_since
Amount of time the users has been friends with the specified Steam ID
Fields
steamid: StringReturns Steam ID of specified account
communityvisibilitystate: i32The current visibility state of the profile
profilestate: i32Profile state
0 if the profile doesn’t have a community profile 1 if it does
personaname: StringProfile name (not the actual account login name)
commentpermissions: Option<i32>Comment section permissions TODO: look into this further, docs online are lacking TODO: add tests
profileurl: Stringavatar: StringUrl of the players avatar (32x32px)
avatarmedium: StringUrl of the players avatar (64x64px)
avatarfull: StringUrl of the players avatar (184x184px)
avatarhash: StringHash of the users avatar
lastlogoff: Option<i32>Time since user was last online (unix timestamp)
personastate: i32The Users current status:
0 = Offline
1 = Online
2 = Busy
3 = Away
4 = Snooze
5 = looking to trade
6 = looking to play
If the player’s profile is private, this will always be 0.
realname: Option<String>primaryclanid: Option<String>timecreated: Option<i32>gameid: Option<String>gameserverip: Option<String>gameextrainfo: Option<String>loccountrycode: Option<String>locstatecode: Option<String>loccityid: Option<i32>Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more