pub struct AccountDto {
pub user_id: i64,
pub account_name: String,
pub nickname: String,
pub avatar_sha256: Option<String>,
pub created_at: i64,
}Expand description
One account as the auth API returns it. nickname is the in-game
display name (the game’s own 1-9 letter rule, mutable);
avatar_sha256 doubles as the avatar cache key and the v= param of
GameStorage::fetch_auth_avatar (None = no avatar uploaded).
Fields§
§user_id: i64§account_name: String§nickname: String§avatar_sha256: Option<String>§created_at: i64Trait Implementations§
Source§impl Clone for AccountDto
impl Clone for AccountDto
Source§fn clone(&self) -> AccountDto
fn clone(&self) -> AccountDto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AccountDto
impl Debug for AccountDto
Source§impl<'de> Deserialize<'de> for AccountDto
impl<'de> Deserialize<'de> for AccountDto
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AccountDto
impl PartialEq for AccountDto
Source§fn eq(&self, other: &AccountDto) -> bool
fn eq(&self, other: &AccountDto) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AccountDto
impl Serialize for AccountDto
impl StructuralPartialEq for AccountDto
Auto Trait Implementations§
impl Freeze for AccountDto
impl RefUnwindSafe for AccountDto
impl Send for AccountDto
impl Sync for AccountDto
impl Unpin for AccountDto
impl UnsafeUnpin for AccountDto
impl UnwindSafe for AccountDto
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
Mutably borrows from an owned value. Read more