pub struct AccountConfig {
pub user_id: i64,
pub account_name: String,
pub nickname: String,
pub auth_key: String,
pub avatar_sha256: Option<String>,
pub guest_player: String,
}Expand description
One logged-in tournament account, mirrored from the server’s
device-link flow. avatar_sha256 is the avatar cache key (the
server serves the same sha as the same bytes, immutable);
guest_player remembers the player name used before the login so
logging out returns to exactly that guest name.
Fields§
§user_id: i64The server-side permanent account id.
account_name: StringThe permanent log-in name (letters and digits, case-insensitively unique server-side).
nickname: StringThe mutable in-game display name. While logged in this IS the tournament player name (the server only accepts verified actions whose player matches the account’s nickname).
auth_key: StringThis device’s per-device key; attached to room actions and push URLs, revoked server-side on logout.
avatar_sha256: Option<String>sha256 of the account’s current avatar, None when the account
has none.
guest_player: StringThe guest player name the launcher used before this login; restored on logout (empty when the login happened without one).
Trait Implementations§
Source§impl Clone for AccountConfig
impl Clone for AccountConfig
Source§fn clone(&self) -> AccountConfig
fn clone(&self) -> AccountConfig
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 AccountConfig
impl Debug for AccountConfig
Source§impl<'de> Deserialize<'de> for AccountConfig
impl<'de> Deserialize<'de> for AccountConfig
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>,
Source§impl PartialEq for AccountConfig
impl PartialEq for AccountConfig
Source§fn eq(&self, other: &AccountConfig) -> bool
fn eq(&self, other: &AccountConfig) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountConfig
impl Serialize for AccountConfig
impl StructuralPartialEq for AccountConfig
Auto Trait Implementations§
impl Freeze for AccountConfig
impl RefUnwindSafe for AccountConfig
impl Send for AccountConfig
impl Sync for AccountConfig
impl Unpin for AccountConfig
impl UnsafeUnpin for AccountConfig
impl UnwindSafe for AccountConfig
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,
§impl<S> FromSample<S> for S
impl<S> FromSample<S> for S
fn from_sample_(s: S) -> S
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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