package serde
-
serde
Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
include module type of struct include Error end
type 'err de_error =
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Missing_field of string
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ] as 'err
module Deserializer : sig ... end
module Error : sig ... end
module Impls : sig ... end
module Reader : sig ... end
module Unimplemented : sig ... end
module Visitor : sig ... end
module Sequence_access : sig ... end
Access modules
module Variant_access : sig ... end
module Map_access : sig ... end
module type Base = sig ... end
module type Deserializer = sig ... end
module type Factory = sig ... end
boilerplace below is because we don't have modular implicits yet.
it threads the two modules manually, and makes sure the all the types are escaping correctly.
val deserialize_unit :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_string :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_int :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_bool :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_identifier :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_record :
'value 'field 'state. 'state Deserializer.t ->
('value, 'field) Visitor.with_tag ->
'field Visitor.t ->
name:string ->
fields:string list ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_seq :
'value 'state. 'state Deserializer.t ->
'value Visitor.t ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result
val deserialize_variant :
'value 'tag 'state. 'state Deserializer.t ->
('value, 'tag) Visitor.with_tag ->
'tag Visitor.t ->
name:string ->
variants:string list ->
('value,
[> `Duplicate_field of string
| `Invalid_field_index of int
| `Invalid_variant_index of int
| `Message of string
| `Missing_field of string
| `Unexpected_exception of exn
| `Unimplemented of string
| `Unknown_field of string
| `Unknown_variant of string ]
de_error)
Stdlib.result