#[non_exhaustive]pub struct PrimaryProfileData {Show 18 fields
pub season: Option<CompactString>,
pub rank_name: Option<CompactString>,
pub rank_image: Option<ProfileMedia>,
pub highest_rank: Option<CompactString>,
pub highest_rank_image: Option<ProfileMedia>,
pub featured_played_character: Option<CompactString>,
pub featured_played_character_image: Option<ProfileMedia>,
pub playtime_hours: Option<f64>,
pub total_wins: Option<u64>,
pub current_period_wins: Option<u64>,
pub total_games: Option<u64>,
pub current_period_games: Option<u64>,
pub total_kills: Option<u64>,
pub current_period_kills: Option<u64>,
pub total_assists: Option<u64>,
pub current_period_assists: Option<u64>,
pub total_deaths: Option<u64>,
pub current_period_deaths: Option<u64>,
}Expand description
The preconfigured stat fields of a profile (text values: max 100 characters).
discord.js counterpart: APIApplicationIdentityProfilePrimaryData (discord-api-types).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.season: Option<CompactString>The current season’s name (e.g. “Season 3”).
rank_name: Option<CompactString>The current rank’s name (e.g. “Silver”).
rank_image: Option<ProfileMedia>An image of the current rank.
highest_rank: Option<CompactString>The highest rank achieved.
highest_rank_image: Option<ProfileMedia>An image of the highest rank achieved.
featured_played_character: Option<CompactString>The featured played character’s name.
featured_played_character_image: Option<ProfileMedia>An image of the featured played character.
playtime_hours: Option<f64>The total playtime in hours (fractions allowed, e.g. 69.41).
total_wins: Option<u64>The total number of wins.
current_period_wins: Option<u64>The wins in the current period (e.g. season).
total_games: Option<u64>The total number of games played.
current_period_games: Option<u64>The games played in the current period.
total_kills: Option<u64>The total number of kills.
current_period_kills: Option<u64>The kills in the current period.
total_assists: Option<u64>The total number of assists.
current_period_assists: Option<u64>The assists in the current period.
total_deaths: Option<u64>The total number of deaths.
current_period_deaths: Option<u64>The deaths in the current period.