[][src]Struct dota2_webapi_bindings::Dota2Api

pub struct Dota2Api {
    pub key: String,
    // some fields omitted
}

The main Dota2Api of you library works by saving states of all the invoked URLs (you only call the one you need) language macro for easy implementation in various builder struct

The language to retrieve results in (default is en_us) (see http://en.wikipedia.org/wiki/ISO_639-1 for the language codes (first two characters) and http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes for the country codes (last two characters))

language (Optional) (string) : The language to provide output in.

Fields

key: String

Implementations

impl Dota2Api[src]

pub fn new(key: String) -> Self[src]

pub fn set_heroes(&mut self) -> &mut GetHeroesBuilder[src]

pub fn get_heroes(&mut self) -> Result<GetHeroes, Error>[src]

pub fn set_game_items(&mut self) -> &mut GetGameItemsBuilder[src]

pub fn get_game_items(&mut self) -> Result<GetGameItems, Error>[src]

pub fn set_rarities(&mut self) -> &mut GetRaritiesBuilder[src]

pub fn get_rarities(&mut self) -> Result<GetRarities, Error>[src]

pub fn set_tournament_prize_pool(
    &mut self
) -> &mut GetTournamentPrizePoolBuilder
[src]

pub fn get_tournament_prize_pool(
    &mut self
) -> Result<GetTournamentPrizePool, Error>
[src]

pub fn set_league_listing(&mut self) -> &mut GetLeagueListingBuilder[src]

pub fn get_league_listing(&mut self) -> Result<GetLeagueListing, Error>[src]

pub fn set_live_league_games(&mut self) -> &mut GetLiveLeagueGamesBuilder[src]

pub fn get_live_league_games(&mut self) -> Result<GetLiveLeagueGames, Error>[src]

pub fn set_top_live_game(&mut self) -> &mut GetTopLiveGameBuilder[src]

pub fn get_top_live_game(&mut self) -> Result<GetTopLiveGame, Error>[src]

Trait Implementations

impl Debug for Dota2Api[src]

impl Default for Dota2Api[src]

Auto Trait Implementations

impl !RefUnwindSafe for Dota2Api

impl Send for Dota2Api

impl Sync for Dota2Api

impl Unpin for Dota2Api

impl !UnwindSafe for Dota2Api

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.

impl<T> Typeable for T where
    T: Any