Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
val binary_schema : t -> Binary_schema.t
Descriptions and schemas of registered encodings.
val json_schema : t -> Json.schema
val description : t -> string option
val binary_pretty_printer :
t ->
Stdlib.Format.formatter ->
Stdlib.Bytes.t ->
unit
val register :
?pp:(Stdlib.Format.formatter -> 'a -> unit) ->
'a Encoding.t ->
unit
find id
is Some r
if register id e
has been called, in which case r
matches e
. Otherwise, it is None
.
list ()
is a list of pairs (id, r)
where r
is a registered encoding for the id
.
Conversion functions from/to json to/from bytes.