tallgrass/client/nature

Functions

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

Fetches a pokemon nature by the nature ID.

Example

let result = nature.fetch_by_id(1)
pub fn fetch_by_name(name: String) -> Result(Nature, Error)

Fetches a pokemon nature by the nature name.

Example

let result = nature.fetch_by_name("hardy")
Search Document