Expand description
Contains models for each documented Brawl Stars API endpoint.
All models derive/implement the following traits:
DebugCloneHashPartialEqEqserde::ser::Serializeserde::de::DeserializeDefault(except for Smart Pointer models, such as all-Leaderboards andBattleLog).
A few may also implement PartialOrd and Ord, such as all -Ranking structs and the pair
ClubMember and ClubMemberRole.
In addition, each endpoint has a different way of fetching, and is associated with a submodule:
/players/:tag->Player::fetch(through thePropFetchabletrait),model::players::playermodule;/players/:tag/battlelog->BattleLog::fetch(through thePropFetchabletrait),model::players::battlelogmodule;/clubs/:tag->Club::fetch(through thePropFetchabletrait),model::clubsmodule;/clubs/:tag/members->ClubMembers::fetch(through thePropFetchabletrait),model::clubs::membersmodule;/rankings/:country_code/players?limit=x->PlayerLeaderboard::fetch(through thePropLimFetchabletrait),model::rankings::playersmodule;/rankings/:country_code/clubs?limit=x->ClubLeaderboard::fetch(through thePropLimFetchabletrait),model::rankings::clubsmodule;/rankings/:country_code/brawlers/:brawler_id?limit=x->BrawlerLeaderboard::fetch(direct implementation; no fetching-related traits),model::rankings::brawlersmodule;/brawlers/->BrawlerList::fetch(direct implementation),model::brawlersmodule;/brawlers/:id->Brawler::fetch(direct implementation),model::brawlersmodule.
Re-exports§
Modules§
- brawlers
- Contains models related to the
/brawlers/...endpoint of the Brawl Stars API. Included by the feature"brawlers"; removing that feature will disable the usage of this module. - clubs
- Models for the
/clubs/:tagBrawl Stars API endpoint. Included by the feature"clubs"; removing that feature will disable the usage of this module. - common
- Models shared for usage by more than one endpoint. Note that, if all the relevant endpoints’ features are disabled, then the respective models here are also disabled.
- players
- Models for all
/players/:tag/...Brawl Stars API endpoints. Included by the feature"players"; removing that feature will disable the usage of this module. - rankings
- Models for all
/rankings/:country_code/...Brawl Stars API endpoints. Included by the feature"rankings"; removing that feature will disable the usage of this module.