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

Innovation. Community. Security.