[][src]Struct brawlhalla::APIConnection

pub struct APIConnection { /* fields omitted */ }

The actual API handler struct which is created from a ConnectionBuilder.

This struct handles all the API calling. You can construct it with a Builder struct, which you can get either from a ConnectionBuilder or the .builder() method.

Methods

impl APIConnection[src]

pub fn builder<'a>() -> ConnectionBuilder<'a>[src]

Returns a builder for an APIConnection. This just calls ConnectionBuilder::default().

pub async fn search_by_steam_id<'_>(
    &'_ self,
    steamid: u64
) -> Result<SearchResult, APIError>
[src]

Searches a Brawlhalla player by their steam64 id.

pub async fn rankings<'_, '_, '_>(
    &'_ self,
    bracket: &'_ str,
    region: &'_ str,
    page: u64
) -> Result<Vec<Rankings>, APIError>
[src]

Retrieves a specific page of ranked player stats. One page contains 50 entries. Warning: Indexing starts at 1 here!

Searches a player by their name and returns ranked data for every possible match.

pub async fn player_stats<'_>(
    &'_ self,
    brawlhalla_id: u64
) -> Result<Player, APIError>
[src]

Retrieves information about the player with the specified Brawlhalla ID.

pub async fn ranked_stats<'_>(
    &'_ self,
    brawlhalla_id: u64
) -> Result<RankedStats, APIError>
[src]

Retrieves ranked stats about the player with the specified Brawlhalla ID.

pub async fn claninfo<'_>(&'_ self, clan_id: u64) -> Result<Clan, APIError>[src]

Retrieves clan stats about the clan with the specified clan ID.

pub async fn legends<'_>(&'_ self) -> Result<Vec<SmallLegend>, APIError>[src]

Retrieves miscellanous data about all legends, such as legend ID, bio, name etc.

pub async fn legendinfo<'_>(
    &'_ self,
    legendid: u64
) -> Result<FullLegend, APIError>
[src]

Retrieves extensive data about a single legend specified by their legend ID.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.