package ez_api

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Ty : sig ... end
type descr = {
  1. name : string;
  2. descr : string option;
  3. example : string option;
}
type 'a t = {
  1. id : 'a Ty.id;
  2. destruct : string -> ('a, string) Stdlib.result;
  3. construct : 'a -> string;
  4. description : descr;
}
val make : ?example:'a -> ?descr:string -> name:string -> destruct:(string -> ('a, string) Stdlib.result) -> construct:('a -> string) -> unit -> 'a t
val descr : 'a t -> descr
val int : ?descr:string -> ?example:int -> string -> int t
val float : ?descr:string -> ?example:float -> string -> float t
val int32 : ?descr:string -> ?example:int32 -> string -> int32 t
val int64 : ?descr:string -> ?example:int64 -> string -> int64 t
val string : ?descr:string -> ?example:string -> string -> string t
OCaml

Innovation. Community. Security.