pub struct AccountDetails {
pub username: String,
pub member: bool,
pub status: AccountStatus,
pub badges: Option<Vec<Value>>,
pub skins: Vec<Value>,
pub achievements_points: i32,
pub banned: bool,
pub ban_reason: Option<String>,
}Fields§
§username: StringUsername.
member: boolMember status.
status: AccountStatusAccount status.
badges: Option<Vec<Value>>Account badges.
skins: Vec<Value>Skins owned.
achievements_points: i32Achievement points.
banned: boolBanned.
ban_reason: Option<String>Ban reason.
Implementations§
Source§impl AccountDetails
impl AccountDetails
pub fn new( username: String, member: bool, status: AccountStatus, skins: Vec<Value>, achievements_points: i32, banned: bool, ) -> AccountDetails
Trait Implementations§
Source§impl Clone for AccountDetails
impl Clone for AccountDetails
Source§fn clone(&self) -> AccountDetails
fn clone(&self) -> AccountDetails
Returns a duplicate of the value. Read more
1.0.0 · 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 AccountDetails
impl Debug for AccountDetails
Source§impl Default for AccountDetails
impl Default for AccountDetails
Source§fn default() -> AccountDetails
fn default() -> AccountDetails
Returns the “default value” for a type. Read more
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for AccountDetails
impl PartialEq for AccountDetails
Source§impl Serialize for AccountDetails
impl Serialize for AccountDetails
impl StructuralPartialEq for AccountDetails
Auto Trait Implementations§
impl Freeze for AccountDetails
impl RefUnwindSafe for AccountDetails
impl Send for AccountDetails
impl Sync for AccountDetails
impl Unpin 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
Mutably borrows from an owned value. Read more