pub struct AuthorizedDevice {Show 13 fields
pub token_id: String,
pub token_description: String,
pub time_updated: u64,
pub platform_type: i32,
pub logged_in: i32,
pub os_platform: i32,
pub auth_type: i32,
pub gaming_device_type: Option<i32>,
pub first_seen: Option<DeviceLocation>,
pub last_seen: Option<DeviceLocation>,
pub os_type: i32,
pub authentication_type: i32,
pub effective_token_state: i32,
}Expand description
A single authorized Steam device / active session.
Returned in both active_devices and revoked_devices lists from
https://store.steampowered.com/account/authorizeddevices.
Fields§
§token_id: StringUnique token identifier (u64 serialized as string by Steam).
token_description: StringHuman-readable description (e.g. user-agent string or device name).
time_updated: u64Unix timestamp of the last token update.
platform_type: i32Steam platform type (2 = browser/web, 3 = mobile, 7 = Steam client).
logged_in: i32Whether the session is currently logged in (1) or not (0).
os_platform: i32OS platform code (2 = Windows, 8 = Android, etc.).
auth_type: i32Auth type code (2 = credentials, 3 = QR, 4 = token refresh, …).
gaming_device_type: Option<i32>Gaming device subtype (e.g. 528 = Samsung Galaxy; null for non-gaming).
first_seen: Option<DeviceLocation>Where and when the session was first established.
last_seen: Option<DeviceLocation>Where and when the session was last active.
os_type: i32Detailed OS type integer returned by Steam.
authentication_type: i32How authentication was performed (1 = new login, 2 = token refresh, …).
effective_token_state: i32Token state: 3 = active, 99 = revoked/expired.
Trait Implementations§
Source§impl Clone for AuthorizedDevice
impl Clone for AuthorizedDevice
Source§fn clone(&self) -> AuthorizedDevice
fn clone(&self) -> AuthorizedDevice
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 AuthorizedDevice
impl Debug for AuthorizedDevice
Source§impl<'de> Deserialize<'de> for AuthorizedDevice
impl<'de> Deserialize<'de> for AuthorizedDevice
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 AuthorizedDevice
impl RefUnwindSafe for AuthorizedDevice
impl Send for AuthorizedDevice
impl Sync for AuthorizedDevice
impl Unpin for AuthorizedDevice
impl UnsafeUnpin for AuthorizedDevice
impl UnwindSafe for AuthorizedDevice
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