tallgrass/client/species

Functions

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

Fetches a pokemon species by the species ID.

Example

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

Fetches a pokemon species by the species name.

Example

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