telega/models/common

Types

pub type IntOrString {
  Int(Int)
  String(String)
}

Constructors

  • Int(Int)
  • String(String)

Functions

pub fn option_to_json_object_list(
  value value: Option(a),
  field field: String,
  encoder encoder: fn(a) -> Json,
) -> List(#(String, Json))
pub fn string_or_int_to_json(value: IntOrString) -> Json
Search Document