| Crates.io | pokemon |
| lib.rs | pokemon |
| version | 1.0.0 |
| created_at | 2017-03-06 01:53:56.124956+00 |
| updated_at | 2017-03-08 08:25:46.551159+00 |
| description | Get Pokémon names |
| homepage | https://github.com/EmmaRamirez/pokemon.git |
| repository | |
| max_upload_size | |
| id | 8842 |
| size | 156,325 |

A tiny Rust library inspired by Pokémon, that lets you get Pokémon names.
This project is not yet complete and is highly unstable and half-written. Do not use it in production, although it'd be weird if your production needed Pokémon names, but, uh, yeah.
cargo install pokemon
Currently, Pokémon are limited to the following properties:
| Property | Type |
|---|---|
| species | i32 |
| language | i32 |
| name | String |
| genus | Option<String> |
Languages correspond to these ids:
| id | language |
|---|---|
| 1 | Japanese (literal) |
| 2 | Japanese (transliterated) |
| 3 | Korean |
| 4 | Chinese |
| 5 | French |
| 6 | German |
| 7 | Spanish |
| 8 | Italian |
| 9 | English |
pokemon::get_all()Returns a vector of Pokemon.
pokemon::get_pokemon(id, lang)Returns a Pokémon based on the specified id and language.
pokemon::get_random()Returns a random Pokémon.
pokemon::get_random_with_lang()Returns a random Pokémon, with a specified language.
pokemon::get_name(id)Returns the name of a Pokémon based on its id. (In English).
pokemon::get_name_with_lang(id, lang)Returns the name of a Pokémon, given id and language.