brawlhalla 0.1.4

An async Brawlhalla API Wrapper using tokio
Documentation
use serde::Deserialize;
//TODO: Implement wrapper methods

#[derive(Debug, Deserialize, ShortHand)]
#[shorthand(disable(set))]
pub struct Player {
    brawlhalla_id: u64,
    name: String,
    xp: u64,
    level: u64,
    xp_percentage: f64,
    games: u64,
    wins: u64,
    damagebomb: String,
    damagemine: String,
    damagespikeball: String,
    damagesidekick: String,
    hitsnowball: u64,
    kobomb: u64,
    komine: u64,
    kospikeball: u64,
    kosidekick: u64,
    kosnowball: u64,
    legends: Vec<PlayerLegend>,
    clan: PlayerClan,
}

#[derive(Deserialize, Debug, ShortHand)]
#[shorthand(disable(set))]
pub struct PlayerLegend {
    pub legend_id: u64,
    pub legend_name_key: String,
    pub damagedealt: String,
    pub damagetaken: String,
    pub kos: u32,
    pub falls: u32,
    pub suicides: u32,
    pub teamkos: u32,
    pub matchtime: u64,
    pub games: u32,
    pub wins: u32,
    pub damageunarmed: String,
    pub damagethrownitem: String,
    pub damageweaponone: String,
    pub damageweapontwo: String,
    pub damagegadgets: String,
    pub kounarmed: u32,
    pub kothrownitem: u32,
    pub koweaponone: u32,
    pub koweapontwo: u32,
    pub kogadgets: u32,
    pub timeheldweaponone: u64,
    pub timeheldweapontwo: u64,
    pub xp: u64,
    pub level: u8,
    pub xp_percentage: f64,
}

#[derive(Deserialize, Debug, ShortHand)]
#[shorthand(disable(set))]
pub struct PlayerClan {
    clan_name: String,
    clan_id: u64,
    clan_xp: String,
    personal_xp: u64,
}