Module Data_encoding.Encoding
type !'a t = 'a Data_encoding__.Encoding.t
type string_json_repr = Data_encoding__V1.Encoding.string_json_repr =
| Hex
| Plain
val ranged_int : int -> int -> int encoding
module Big_endian : sig ... end
module Little_endian : sig ... end
val uint_like_n : ?max_value:int -> unit -> int encoding
val int_like_z : ?min_value:int -> ?max_value:int -> unit -> int encoding
val ranged_float : float -> float -> float encoding
type bigstring =
(char, Stdlib.Bigarray.int8_unsigned_elt, Stdlib.Bigarray.c_layout)
Stdlib.Bigarray.Array1.t
val array_with_length :
?max_length:int ->
[ `N | `Uint16 | `Uint30 | `Uint8 ] ->
'a encoding ->
'a array encoding
val list_with_length :
?max_length:int ->
[ `N | `Uint16 | `Uint30 | `Uint8 ] ->
'a encoding ->
'a list encoding
val conv :
('a -> 'b) ->
('b -> 'a) ->
?schema:Json_schema.schema ->
'b encoding ->
'a encoding
val conv_with_guard :
('a -> 'b) ->
('b -> ('a, string) Stdlib.result) ->
?schema:Json_schema.schema ->
'b encoding ->
'a encoding
val with_decoding_guard :
('a -> (unit, string) Stdlib.result) ->
'a encoding ->
'a encoding
type 'a field = 'a Data_encoding__V1.Encoding.field
val req :
?title:string ->
?description:string ->
string ->
't encoding ->
't field
val opt :
?title:string ->
?description:string ->
string ->
't encoding ->
't option field
val varopt :
?title:string ->
?description:string ->
string ->
't encoding ->
't option field
val dft :
?title:string ->
?description:string ->
string ->
't encoding ->
't ->
't field
module With_field_name_duplicate_checks : sig ... end
type 't case = 't Data_encoding__V1.Encoding.case
type case_tag = Data_encoding__V1.Encoding.case_tag =
| Tag of int
| Json_only
and match_result = Data_encoding__V1.Encoding.match_result
val case :
title:string ->
?description:string ->
case_tag ->
'a encoding ->
('t -> 'a option) ->
('a -> 't) ->
't case
val union : ?tag_size:[ `Uint16 | `Uint8 ] -> 't case list -> 't encoding
module With_JSON_discriminant : sig ... end
val classify : 'a encoding -> [ `Dynamic | `Fixed of int | `Variable ]
val string_enum : (string * 'a) list -> 'a encoding
module Fixed : sig ... end
module Variable : sig ... end
module Bounded : sig ... end
val def :
string ->
?title:string ->
?description:string ->
't encoding ->
't encoding
type 'a lazy_t = 'a Data_encoding__V1.Encoding.lazy_t
val force_decode : 'a lazy_t -> 'a option
val force_bytes : 'a lazy_t -> Stdlib.Bytes.t
val apply_lazy :
fun_value:('a -> 'b) ->
fun_bytes:(Stdlib.Bytes.t -> 'b) ->
fun_combine:('b -> 'b -> 'b) ->
'a lazy_t ->
'b
type 'a compact = 'a {Compact}475.t
val lazy_encoding : 'a encoding -> 'b lazy_t Data_encoding__Encoding.encoding
val dynamic_size :
?kind:[ `Uint16 | `Uint30 | `Uint8 ] ->
'a encoding ->
'a encoding