pub struct AccountDetails {Show 17 fields
pub account_name: Option<String>,
pub email: Option<String>,
pub phone_hint: Option<String>,
pub latest_android_app_version: Option<String>,
pub requesting_token_id: Option<String>,
pub active_devices: Vec<AuthorizedDevice>,
pub revoked_devices: Vec<AuthorizedDevice>,
pub two_factor_status: Option<TwoFactorStatus>,
pub user_info: Option<PageUserInfo>,
pub hw_info: Option<PageHwInfo>,
pub page_config: Option<PageConfig>,
pub store_user_config: Option<StoreUserConfig>,
pub notifications: Option<PageNotifications>,
pub broadcast_user: Option<BroadcastUser>,
pub wallet_balance: Option<WalletBalance>,
pub avatar_hash: Option<String>,
pub country: Option<String>,
}Expand description
Full account details parsed from https://store.steampowered.com/account/authorizeddevices.
Fields§
§account_name: Option<String>Steam account name (data-accountName).
email: Option<String>Account email address (data-email).
phone_hint: Option<String>Masked phone number hint, empty string if none (data-phone_hint).
latest_android_app_version: Option<String>Latest Steam Android app version string
(data-latest_android_app_version).
requesting_token_id: Option<String>Token ID of the session currently browsing the page
(data-requesting_token_id).
active_devices: Vec<AuthorizedDevice>Sessions that are currently active / not revoked.
revoked_devices: Vec<AuthorizedDevice>Sessions that were previously revoked.
two_factor_status: Option<TwoFactorStatus>Steam Guard / two-factor authenticator status.
user_info: Option<PageUserInfo>Basic account info embedded in every Store page.
hw_info: Option<PageHwInfo>Hardware / platform flags.
page_config: Option<PageConfig>Page-level configuration (CDN URLs, build info, etc.).
store_user_config: Option<StoreUserConfig>Store user config including the short-lived WebAPI token.
notifications: Option<PageNotifications>Steam notifications for this account.
broadcast_user: Option<BroadcastUser>Broadcast status for this account.
wallet_balance: Option<WalletBalance>Wallet balance parsed from the page header.
avatar_hash: Option<String>SHA-1 avatar hash (e.g. "834966fea6a0a8a3b7011db7f96d38b51ee0ba64").
country: Option<String>Country code from data-userinfo (e.g. "VN", "US").
Implementations§
Source§impl AccountDetails
impl AccountDetails
Sourcepub fn account_security(&self) -> Option<String>
pub fn account_security(&self) -> Option<String>
Human-readable Steam Guard status derived from
two_factor_status.
state == 1→"Steam Guard Mobile Authenticator"state == 0, email_validated == 1→"Steam Guard (Email)"- otherwise →
None
Trait Implementations§
Source§impl Clone for AccountDetails
impl Clone for AccountDetails
Source§fn clone(&self) -> AccountDetails
fn clone(&self) -> AccountDetails
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccountDetails
impl Debug for AccountDetails
Source§impl Default for AccountDetails
impl Default for AccountDetails
Source§fn default() -> AccountDetails
fn default() -> AccountDetails
Source§impl<'de> Deserialize<'de> for AccountDetails
impl<'de> Deserialize<'de> for AccountDetails
Source§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>,
Auto Trait Implementations§
impl Freeze for AccountDetails
impl RefUnwindSafe for AccountDetails
impl Send for AccountDetails
impl Sync for AccountDetails
impl Unpin for AccountDetails
impl UnsafeUnpin for AccountDetails
impl UnwindSafe for AccountDetails
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian().