tallgrass/client/ability

Functions

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

Fetches a pokemon ability by the ability ID.

Example

let result = ability.fetch_by_id(32)
pub fn fetch_by_name(name: String) -> Result(Ability, Error)

Fetches a pokemon ability by the ability name.

Example

let result = ability.fetch_by_name("serene-grace")
Search Document