package awsm-codegen

  1. Overview
  2. Docs
type t
val sexp_of_t : t -> Sexplib0.Sexp.t

Constructors

val create : name:string -> op:Botodata.operation option -> request_module:string option -> result_module:string option -> meth:Botodata.http_method -> request_uri:Botodata.requestUri -> query_params:Query_param.t list -> payload:Payload.t option -> result_decoder:Result_decoder.t option -> t
val create_test : ?op:Botodata.operation option -> ?request_module:string option -> ?result_module:string option -> ?meth:Botodata.http_method -> ?request_uri:Botodata.requestUri -> ?query_params:Query_param.t list -> ?payload:Payload.t option -> ?result_decoder:Result_decoder.t option -> string -> t
val of_botodata : Botodata.operation -> service:Botodata.service -> t

Accessors

val name : t -> string
val op : t -> Botodata.operation option
val meth : t -> Botodata.http_method
val request_uri : t -> Botodata.requestUri
val query_params : t -> Query_param.t list
val payload : t -> Payload.t option
val result_decoder : t -> Result_decoder.t option
val request_type : t -> Ppxlib.Parsetree.core_type
val result_ok_type : t -> Ppxlib.Parsetree.core_type
val result_error_type : t -> Ppxlib.Parsetree.core_type
val in_request_module : t -> string -> Ppxlib.Parsetree.expression option
val request_module : t -> string option
val in_result_module : t -> string -> Ppxlib.Parsetree.expression option
val result_module : t -> string option
val cases : f:(t -> Ppxlib.Parsetree.expression) -> t list -> Ppxlib.Parsetree.case list
OCaml

Innovation. Community. Security.