pub struct User {Show 20 fields
pub steamid: String,
pub communityvisibilitystate: i32,
pub profilestate: i32,
pub personaname: String,
pub commentpermission: 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 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 1 = Private 2 = Friends Only 3 = Public
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)
commentpermission: Option<i32>If set, comments are allowed on the profile 1 = Public comments 2 = Private/Friends Only TODO: Check me further
profileurl: String§avatar: 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>Real name of the user if set
primaryclanid: Option<String>Primary clan ID of the user if set
timecreated: Option<i32>Age of the profile
gameid: Option<String>ID of the game the user is in
gameserverip: Option<String>IP of the game server the user is in
loccountrycode: Option<String>Country the user resides in
locstatecode: Option<String>State the user resides in
loccityid: Option<i32>City the use resides in