tallgrass/client/color

Functions

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

Fetches a pokemon color by the color ID.

Example

let result = color.fetch_by_id(9)
pub fn fetch_by_name(name: String) -> Result(Color, Error)

Fetches a pokemon color by the color name.

Example

let result = color.fetch_by_name("white")
Search Document