Module model

Source
Expand description

Contains models for each documented Brawl Stars API endpoint.

All models derive/implement the following traits:

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:

Re-exports§

pub use common::*;
pub use players::*;
pub use clubs::*;
pub use rankings::*;
pub use brawlers::*;

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/:tag Brawl 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.