tallgrass/client/berry
Functions
pub fn fetch_by_id(id: Int) -> Result(Berry, Error)
Fetches a berry by the berry ID.
Example
let result = berry.fetch_by_id(1)
pub fn fetch_by_name(name: String) -> Result(Berry, Error)
Fetches a berry by the berry name.
Example
let result = berry.fetch_by_name("cheri")