Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t =
| Text of id * label * help_text * text * string option * regex * required
| Country of id * label * help_text * text * required
| Select of id * label * help_text * text * possible_options * required
| YesNo of id * label * help_text * text * required
| Date of id * label * help_text * text * required
| File of id * label * help_text * text * mime_types * max_file_size * required
| Year of id * label * help_text * text * required
val to_yojson : t -> Yojson.Safe.t
val of_yojson : Yojson.Safe.t -> t Ppx_deriving_yojson_runtime.error_or
val pp : Format.formatter -> t -> unit
val show : t -> string
val uuid : t -> string
val label : t -> string
val help_text : t -> string option
val text : t -> string
val is_file : t -> bool
val is_required : t -> bool
val is_valid : t -> AnswerInput.t -> bool
val validate : t -> AnswerInput.t option -> (unit, string) Result.t