Ocsigen

Start

Home

Doc

Blog

Eliom

Js_of_ocaml

Server

Lwt

Tyxml

Start

  • Home
  • Doc
  • Eliom
  • Js_of_ocaml
  • Server
  • Lwt
  • Tyxml
  • Toolkit
  • Start
  • Ocsipersist
  • ReactiveData
  • i18n
  • Wodoc
  • Other projects
  • Research papers
  • Who does Ocsigen?
  • Contributing
  • Blog
  • Installation
  • Source code

On this page

Manual

  • Introduction
  • Overview

Server API

Server API

  • Os_current_user
  • Os_date
  • Os_db
  • Os_email
  • Os_fcm_notif
  • Os_group
  • Os_handlers
  • Os_icons
  • Os_lib
  • Os_msg
  • Os_notif
  • Os_page
  • Os_platform
  • Os_request_cache
  • Os_services
  • Os_session
  • Os_tips
  • Os_types
  • Os_uploader
  • Os_user
  • Os_user_proxy
  • Os_user_view

On this page

Manual

  • Introduction
  • Overview

Server API

Server API

  • Os_current_user
  • Os_date
  • Os_db
  • Os_email
  • Os_fcm_notif
  • Os_group
  • Os_handlers
  • Os_icons
  • Os_lib
  • Os_msg
  • Os_notif
  • Os_page
  • Os_platform
  • Os_request_cache
  • Os_services
  • Os_session
  • Os_tips
  • Os_types
  • Os_uploader
  • Os_user
  • Os_user_proxy
  • Os_user_view

Module Os_types.User

type id = int64

Type representing a user ID

val id_of_json : Deriving_Json_lexer.lexbuf -> id
val id_to_json : Buffer.t -> id -> unit
val id_json : id Deriving_Json.t
type t = {
  1. userid : id;
  2. fn : string;
  3. ln : string;
  4. avatar : string option;
  5. language : string option;
}

Type representing a user. See Os_user.

val of_json : Deriving_Json_lexer.lexbuf -> t
val to_json : Buffer.t -> t -> unit
val json : t Deriving_Json.t