package atdgen-codec-runtime

  1. Overview
  2. Docs

Module Atdgen_codec_runtime.DecodeSource

Sourcetype 'a t = Json.t -> 'a
Sourceval make : (Json.t -> 'a) -> 'a t
Sourceval decode : 'a t -> Json.t -> 'a
Sourceval unit : unit t
Sourceval bool : bool t
Sourceval int : int t
Sourceval float : float t
Sourceval char : char t
Sourceval string : string t
Sourceval optional : 'a t -> 'a option t
Sourceval list : 'a t -> 'a list t
Sourceval array : 'a t -> 'a array t
Sourceval obj_list : 'a t -> (string * 'a) list t
Sourceval obj_array : 'a t -> (string * 'a) array t
Sourceval field : string -> 'a t -> 'a t
Sourceval fieldDefault : string -> 'a -> 'a t -> 'a t
Sourceval fieldOptional : string -> 'a t -> 'a option t
Sourceval map : ('a -> 'b) -> 'a t -> 'b t
Sourceval tuple1 : 'a t -> 'a t
Sourceval tuple2 : 'a t -> 'b t -> ('a * 'b) t
Sourceval tuple3 : 'a t -> 'b t -> 'c t -> ('a * 'b * 'c) t
Sourceval tuple4 : 'a t -> 'b t -> 'c t -> 'd t -> ('a * 'b * 'c * 'd) t
Sourceval enum : (string * [ `Single of 'a | `Decode of 'a t ]) list -> 'a t
Sourceval option_as_constr : 'a t -> 'a option t
Sourceval nullable : 'a t -> 'a option t
Sourceval adapter : (Json.t -> Json.t) -> 'a t -> 'a t
OCaml

Innovation. Community. Security.