tallgrass/client/gender

Functions

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

Fetches a pokemon gender by the gender ID.

Example

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

Fetches a pokemon gender by the gender name.

Example

let result = gender.fetch_by_name("genderless")
Search Document