package serde

  1. Overview
  2. Docs
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
val invalid_field_index : idx:'a -> ('b, [> `Invalid_field_index of 'a ]) Stdlib.result
val invalid_variant_index : idx:'a -> ('b, [> `Invalid_variant_index of 'a ]) Stdlib.result
val message : 'a -> ('b, [> `Message of 'a ]) Stdlib.result
val unexpected_exception : 'a -> ('b, [> `Unexpected_exception of 'a ]) Stdlib.result
val unimplemented : 'a -> ('b, [> `Unimplemented of 'a ]) Stdlib.result
val unknown_field : 'a -> ('b, [> `Unknown_field of 'a ]) Stdlib.result
val unknown_variant : 'a -> ('b, [> `Unknown_variant of 'a ]) Stdlib.result
val missing_field : 'a -> ('b, [> `Missing_field of 'a ]) Stdlib.result
OCaml

Innovation. Community. Security.