tallgrass/client/pokemon

Functions

pub fn fetch_by_id(id: Int) -> Result(Pokemon, Error)

Fetches a pokemon by the pokemon ID.

Example

let result = pokemon.fetch_by_id(132)
pub fn fetch_by_name(name: String) -> Result(Pokemon, Error)

Fetches a pokemon by the pokemon name.

Example

let result = pokemon.fetch_by_name("ditto")
Search Document