User

Struct User 

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

Returns Steam ID of specified account

§communityvisibilitystate: i32

The current visibility state of the profile 1 = Private 2 = Friends Only 3 = Public

§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)

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

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

Trait Implementations§

Source§

impl Debug for User

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for User

Source§

fn default() -> User

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

impl<'de> Deserialize<'de> for User

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for User

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl Freeze for User

§

impl RefUnwindSafe for User

§

impl Send for User

§

impl Sync for User

§

impl Unpin for User

§

impl UnwindSafe for User

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

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

fn in_current_span(self) -> Instrumented<Self>

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

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,