package telegraml

  1. Overview
  2. Docs
type user = {
  1. id : int;
  2. first_name : string;
  3. last_name : string option;
  4. username : string option;
}

Represents a user profile

val create : id:int -> first_name:string -> ?last_name:string option -> ?username:string option -> unit -> user

Create a user in a concise manner

Read a user out of some JSON

val read : Yojson.Safe.json -> user

Read a user out of some JSON