glitch/types/reward
Types
pub type Reward {
Reward(id: String, title: String, cost: Int, prompt: String)
}
Constructors
-
Reward(id: String, title: String, cost: Int, prompt: String)
Functions
pub fn reward_decoder() -> fn(Dynamic) ->
Result(Reward, List(DecodeError))
pub fn reward_status_decoder() -> fn(Dynamic) ->
Result(Status, List(DecodeError))
pub fn reward_status_from_string(
string: String,
) -> Result(Status, Nil)
pub fn rewards_status_to_string(reward_status: Status) -> String