pub struct PublicProfileSummary {Show 18 fields
pub steam_id: SteamID,
pub persona_name: String,
pub online_state: OnlineState,
pub state_message: String,
pub privacy_state: PrivacyState,
pub avatar_icon: String,
pub avatar_medium: String,
pub avatar_full: String,
pub vac_banned: bool,
pub trade_ban_state: TradeBanState,
pub is_limited_account: bool,
pub custom_url: Option<String>,
pub member_since: Option<DateTime<Utc>>,
pub headline: Option<String>,
pub location: Option<String>,
pub real_name: Option<String>,
pub summary: Option<String>,
pub hours_played_2wk: Option<f32>,
}Expand description
Snapshot of a Steam profile as returned by the public
steamcommunity.com/id/{vanity}/?xml=1 (or /profiles/{id}/?xml=1) feed.
Anonymous; no API key required. Field availability depends on the
profile’s privacy setting — fields wrapped in Option are populated only
for profiles where the corresponding section is public.
Fields§
§steam_id: SteamID64-bit Steam ID.
persona_name: StringDisplay name (<steamID> in XML — confusingly named by Valve).
online_state: OnlineStateOnline status (online / offline / in-game / …).
state_message: StringFree-form status text (e.g. "Last Online 3 days ago").
privacy_state: PrivacyStateProfile visibility — collapses Steam’s redundant <privacyState>
(string) and <visibilityState> (1/2/3) tags into one value.
avatar_icon: StringSmall (32x32) avatar URL.
avatar_medium: StringMedium (64x64) avatar URL.
avatar_full: StringFull (184x184) avatar URL.
vac_banned: boolVAC banned at least once.
trade_ban_state: TradeBanStateTrade-ban state.
is_limited_account: boolLimited account (no purchase activation, etc.).
custom_url: Option<String>Custom URL slug (only for profiles that set one).
member_since: Option<DateTime<Utc>>Account creation date. Steam serves this localized; the client pins
l=english, so parsing as "%B %d, %Y" is stable. Stored as a
DateTime<Utc> at midnight UTC (Steam reports day granularity only).
None if absent or unparseable.
headline: Option<String>Profile headline.
location: Option<String>User-supplied location.
real_name: Option<String>Real name.
summary: Option<String>Profile summary (HTML).
hours_played_2wk: Option<f32>Hours played in last 2 weeks across all games.
Trait Implementations§
Source§impl Clone for PublicProfileSummary
impl Clone for PublicProfileSummary
Source§fn clone(&self) -> PublicProfileSummary
fn clone(&self) -> PublicProfileSummary
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for PublicProfileSummary
impl RefUnwindSafe for PublicProfileSummary
impl Send for PublicProfileSummary
impl Sync for PublicProfileSummary
impl Unpin for PublicProfileSummary
impl UnsafeUnpin for PublicProfileSummary
impl UnwindSafe for PublicProfileSummary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more