pub struct Player {
Show 28 fields pub tag: String, pub name: String, pub town_hall_level: i8, pub town_hall_weapon_level: Option<i8>, pub exp_level: i32, pub trophies: i32, pub best_trophies: i32, pub war_stars: i32, pub attack_wins: i32, pub defense_wins: i32, pub builder_hall_level: Option<i8>, pub versus_trophies: i32, pub best_versus_trophies: i32, pub versus_battle_wins: i32, pub role: Option<Role>, pub war_preference: Option<WarPreference>, pub donations: i32, pub donations_received: i32, pub clan_capital_contributions: i32, pub clan: Option<PlayerClan>, pub league: Option<League>, pub legend_statistics: Option<LegendStatistics>, pub achievements: Vec<Achievement>, pub versus_battle_win_count: i32, pub labels: Vec<PlayerLabel>, pub troops: Vec<Troop>, pub heroes: Vec<Hero>, pub spells: Vec<Spell>,
}

Fields

tag: Stringname: Stringtown_hall_level: i8town_hall_weapon_level: Option<i8>exp_level: i32trophies: i32best_trophies: i32war_stars: i32attack_wins: i32defense_wins: i32builder_hall_level: Option<i8>versus_trophies: i32best_versus_trophies: i32versus_battle_wins: i32role: Option<Role>war_preference: Option<WarPreference>donations: i32donations_received: i32clan_capital_contributions: i32clan: Option<PlayerClan>league: Option<League>legend_statistics: Option<LegendStatistics>achievements: Vec<Achievement>versus_battle_win_count: i32labels: Vec<PlayerLabel>troops: Vec<Troop>heroes: Vec<Hero>spells: Vec<Spell>

Implementations

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more