package ppx_deriving_protobuf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ppx_deriving_protobufSource

Sourceval lid : string -> Ppxlib__.Longident.t Ppxlib.Ast_builder.Default.Located.t
Sourcetype pb_encoding =
  1. | Pbe_varint
  2. | Pbe_zigzag
  3. | Pbe_bits32
  4. | Pbe_bits64
  5. | Pbe_bytes
  6. | Pbe_packed of pb_encoding
Sourceand pb_type =
  1. | Pbt_bool
  2. | Pbt_int
  3. | Pbt_int32
  4. | Pbt_int64
  5. | Pbt_uint32
  6. | Pbt_uint64
  7. | Pbt_float
  8. | Pbt_string
  9. | Pbt_bytes
  10. | Pbt_imm of Ppxlib.Parsetree.core_type
  11. | Pbt_variant of (int * string) list
  12. | Pbt_nested of Ppxlib.Parsetree.core_type list * Ppxlib.Longident.t
  13. | Pbt_poly of string
Sourceand pb_kind =
  1. | Pbk_required
  2. | Pbk_optional
  3. | Pbk_repeated
Sourceand pb_field = {
  1. pbf_name : string;
  2. pbf_extname : string;
  3. pbf_path : string list;
  4. pbf_key : int;
  5. pbf_enc : pb_encoding;
  6. pbf_type : pb_type;
  7. pbf_kind : pb_kind;
  8. pbf_default : Ppxlib.Parsetree.expression option;
  9. pbf_loc : Ppxlib.Location.t;
}
Sourcetype error =
  1. | Pberr_attr_syntax of Ppxlib.Location.t * [ `Key | `Encoding | `Bare | `Default | `Packed ]
  2. | Pberr_wrong_attr of Ppxlib.Parsetree.attribute
  3. | Pberr_no_key of Ppxlib.Location.t
  4. | Pberr_key_invalid of Ppxlib.Location.t * int
  5. | Pberr_key_duplicate of int * Ppxlib.Location.t * Ppxlib.Location.t
  6. | Pberr_abstract of Ppxlib.Parsetree.type_declaration
  7. | Pberr_open of Ppxlib.Parsetree.type_declaration
  8. | Pberr_wrong_ty of Ppxlib.Parsetree.core_type
  9. | Pberr_wrong_tparm of Ppxlib.Parsetree.core_type
  10. | Pberr_no_conversion of Ppxlib.Location.t * pb_type * pb_encoding
  11. | Pberr_packed_bytes of Ppxlib.Location.t
  12. | Pberr_dumb_protoc of Ppxlib.Location.t
  13. | Pberr_ocaml_expr of Ppxlib.Location.t
Sourceexception Error of error
Sourceval filter_map : ('a -> 'b option) -> 'a list -> 'b list
Sourceval string_of_lident : Ppxlib.Longident.t -> string
Sourceval string_of_pb_encoding : pb_encoding -> string
Sourceval pb_encoding_of_string : string -> pb_encoding option
Sourceval string_of_pb_type : pb_type -> string
Sourceval string_payload_kind_of_pb_encoding : pb_encoding -> string
Sourceval describe_error : error -> 'a
Sourceval deriver : string
Sourceval pb_key_of_attrs : Ppxlib.attributes -> int option
Sourceval pb_encoding_of_attrs : Ppxlib.attributes -> pb_encoding option
Sourceval bare_of_attrs : Ppxlib.attributes -> bool
Sourceval default_of_attrs : Ppxlib.attributes -> Ppxlib_ast.Ast.expression option
Sourceval packed_of_attrs : Ppxlib.attributes -> bool
Sourceval fields_of_ptype : Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list -> Ppxlib.Parsetree.type_declaration -> pb_field list
Sourceval empty_constructor_argument : Ppxlib.Parsetree.constructor_declaration -> bool
Sourceval int64_constant_of_int : int -> Ppxlib.Parsetree.constant
Sourceval derive_reader_bare : string list -> 'a -> Ppxlib.type_declaration -> Astlib.Ast_502.Parsetree.value_binding option
Sourceval derive_reader : string list -> pb_field list -> Astlib.Ast_502.Parsetree.type_declaration -> Astlib.Ast_502.Parsetree.value_binding
Sourceval derive_writer_bare : 'a -> Ppxlib.type_declaration -> Astlib.Ast_502.Parsetree.value_binding option
Sourceval derive_writer : pb_field list -> Astlib.Ast_502.Parsetree.type_declaration -> Astlib.Ast_502.Parsetree.value_binding
Sourceval str_of_type : options:'a -> path:Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list -> Ppxlib.Parsetree.type_declaration -> Astlib.Ast_502.Parsetree.value_binding list
Sourceval has_bare : Ppxlib.Parsetree.type_declaration -> bool
Sourceval sig_of_type : options:'a -> path:'b -> Ppxlib.Parsetree.type_declaration -> Astlib.Ast_502.Parsetree.signature_item list
Sourcemodule LongidentSet : sig ... end
Sourceval write_protoc : fmt:Format.formatter -> path:Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list -> ?import:string list -> Ppxlib.Parsetree.type_declaration -> unit
Sourceval protoc_files : (string, Format.formatter) Hashtbl.t
Sourceval parse_options : options:(string * Ppxlib_ast.Ast.expression) list -> path:Ppxlib_ast__Versions.OCaml_502.Ast.Asttypes.label list -> Ppxlib.Parsetree.type_declaration list -> unit
OCaml

Innovation. Community. Security.