package ocaml-protoc-plugin

  1. Overview
  2. Docs
module Type : sig ... end
module Label : sig ... end
val name' : unit -> string
type t = {
  1. name : string option;
  2. number : int option;
  3. label : Label.t option;
  4. type' : Type.t option;
  5. type_name : string option;
  6. extendee : string option;
  7. default_value : string option;
  8. oneof_index : int option;
  9. json_name : string option;
  10. options : FieldOptions.t option;
  11. proto3_optional : bool option;
}
val make : ?name:string -> ?number:int -> ?label:Label.t -> ?type':Type.t -> ?type_name:string -> ?extendee:string -> ?default_value:string -> ?oneof_index:int -> ?json_name:string -> ?options:FieldOptions.t -> ?proto3_optional:bool -> unit -> t
val to_proto : t -> Ocaml_protoc_plugin.Runtime.Runtime'.Writer.t
val from_proto : Ocaml_protoc_plugin.Runtime.Runtime'.Reader.t -> (t, [> Ocaml_protoc_plugin.Runtime.Runtime'.Result.error ]) Stdlib.result