pub struct PlayerResponse {
pub id: Option<i64>,
pub name: Option<String>,
pub ratings: Option<Vec<PlayerResponsePlayer>>,
pub platform: Option<String>,
pub status: Option<String>,
pub top_global: Option<i32>,
pub tags: Option<Vec<TagResponse>>,
}Fields§
§id: Option<i64>Player’s ID
name: Option<String>Player’s name
ratings: Option<Vec<PlayerResponsePlayer>>Player’s ratings for each character
platform: Option<String>Player’s platform (PS, XB, PC)
status: Option<String>Player’s status (Public, Private, Cheater)
top_global: Option<i32>Player’s top global rank
Player’s tags (awards, titles, etc.)
Implementations§
Source§impl PlayerResponse
impl PlayerResponse
pub fn new() -> PlayerResponse
Trait Implementations§
Source§impl Clone for PlayerResponse
impl Clone for PlayerResponse
Source§fn clone(&self) -> PlayerResponse
fn clone(&self) -> PlayerResponse
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 PlayerResponse
impl Debug for PlayerResponse
Source§impl Default for PlayerResponse
impl Default for PlayerResponse
Source§fn default() -> PlayerResponse
fn default() -> PlayerResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PlayerResponse
impl<'de> Deserialize<'de> for PlayerResponse
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 PlayerResponse
impl PartialEq for PlayerResponse
Source§impl Serialize for PlayerResponse
impl Serialize for PlayerResponse
impl StructuralPartialEq for PlayerResponse
Auto Trait Implementations§
impl Freeze for PlayerResponse
impl RefUnwindSafe for PlayerResponse
impl Send for PlayerResponse
impl Sync for PlayerResponse
impl Unpin for PlayerResponse
impl UnsafeUnpin for PlayerResponse
impl UnwindSafe for PlayerResponse
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