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: String

Returns Steam ID of specified account

communityvisibilitystate: i32

The current visibility state of the profile

profilestate: i32

Profile state

0 if the profile doesn’t have a community profile 1 if it does

personaname: String

Profile 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: String

Url of the players avatar (32x32px)

avatarmedium: String

Url of the players avatar (64x64px)

avatarfull: String

Url of the players avatar (184x184px)

avatarhash: String

Hash of the users avatar

lastlogoff: Option<i32>

Time since user was last online (unix timestamp)

personastate: i32

The 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

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.