tallgrass/client/contest_type

Functions

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

Fetches a contest type by the type ID.

Example

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

Fetches a contest type by the type name.

Example

let result = contest_type.fetch_by_name("cool")
Search Document