pub struct Dota2Api {
pub key: String,
/* private fields */
}Expand description
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: StringImplementations§
Source§impl Dota2Api
impl Dota2Api
pub fn new(key: String) -> Self
pub fn set_heroes(&mut self) -> &mut GetHeroesBuilder
pub fn get_heroes(&mut self) -> Result<GetHeroes, Error>
pub fn set_game_items(&mut self) -> &mut GetGameItemsBuilder
pub fn get_game_items(&mut self) -> Result<GetGameItems, Error>
pub fn set_rarities(&mut self) -> &mut GetRaritiesBuilder
pub fn get_rarities(&mut self) -> Result<GetRarities, Error>
pub fn set_tournament_prize_pool( &mut self, ) -> &mut GetTournamentPrizePoolBuilder
pub fn get_tournament_prize_pool( &mut self, ) -> Result<GetTournamentPrizePool, Error>
pub fn set_league_listing(&mut self) -> &mut GetLeagueListingBuilder
pub fn get_league_listing(&mut self) -> Result<GetLeagueListing, Error>
pub fn set_live_league_games(&mut self) -> &mut GetLiveLeagueGamesBuilder
pub fn get_live_league_games(&mut self) -> Result<GetLiveLeagueGames, Error>
pub fn set_top_live_game(&mut self) -> &mut GetTopLiveGameBuilder
pub fn get_top_live_game(&mut self) -> Result<GetTopLiveGame, Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Dota2Api
impl !RefUnwindSafe for Dota2Api
impl Send for Dota2Api
impl Sync for Dota2Api
impl Unpin for Dota2Api
impl !UnwindSafe for Dota2Api
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more