Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
module Ty : sig ... end
and ('a, 'b) query_fields =
| F0 : ('a, 'a) query_fields
| F1 : ('a, 'b) query_field
* ('a, 'c) query_fields -> ('a, 'b -> 'c) query_fields
and ('a, 'b) query_field =
| Single : {
name : string;
description : string option;
ty : 'b arg;
default : 'b;
get : 'a -> 'b;
} -> ('a, 'b) query_field
| Opt : {
name : string;
description : string option;
ty : 'b arg;
get : 'a -> 'b option;
} -> ('a, 'b option) query_field
| Flag : {
} -> ('a, bool) query_field
| Multi : {
name : string;
description : string option;
ty : 'b arg;
get : 'a -> 'b list;
} -> ('a, 'b list) query_field
val field_name : ('a, 'b) query_field -> string
val field_description : ('a, 'b) query_field -> string option
val field_kind : ('a, 'b) query_field -> Description.query_kind
type ('query, 'input, 'output, 'error) types = {
query : 'query Query.t;
input : 'input input;
output : 'output Encoding.t;
error : 'error Encoding.t;
}