pub struct UggApi {
pub current_version: String,
pub allowed_versions: Vec<SupportedVersion>,
pub patch_version: String,
pub champ_data: HashMap<String, ChampionShort>,
pub items: HashMap<String, Item>,
pub runes: HashMap<i64, RuneExtended<RuneElement>>,
pub summoner_spells: HashMap<i64, String>,
pub arena_augments: HashMap<i64, Augment>,
/* private fields */
}
Fields§
§current_version: String
§allowed_versions: Vec<SupportedVersion>
§patch_version: String
§champ_data: HashMap<String, ChampionShort>
§items: HashMap<String, Item>
§runes: HashMap<i64, RuneExtended<RuneElement>>
§summoner_spells: HashMap<i64, String>
§arena_augments: HashMap<i64, Augment>
Implementations§
Source§impl UggApi
impl UggApi
pub fn new( version: Option<String>, cache_dir: Option<PathBuf>, ) -> Result<Self, UggError>
pub fn find_champ(&self, name: &str) -> &ChampionShort
pub fn get_stats( &self, champ: &ChampionShort, role: Role, region: Region, mode: Mode, build: Build, ) -> Result<(Overview, Role), UggError>
pub fn get_matchups( &self, champ: &ChampionShort, role: Role, region: Region, mode: Mode, ) -> Result<(MatchupData, Role), UggError>
Auto Trait Implementations§
impl !Freeze for UggApi
impl !RefUnwindSafe for UggApi
impl Send for UggApi
impl !Sync for UggApi
impl Unpin for UggApi
impl !UnwindSafe for UggApi
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more