package ocaml-protoc-plugin

  1. Overview
  2. Docs
module Kind : sig ... end
module Cardinality : sig ... end
val name' : unit -> string
type t = {
  1. kind : Kind.t;
  2. cardinality : Cardinality.t;
  3. number : int;
  4. name : string;
  5. type_url : string;
  6. oneof_index : int;
  7. packed : bool;
  8. options : Option.t list;
  9. json_name : string;
  10. default_value : string;
}
val make : ?kind:Kind.t -> ?cardinality:Cardinality.t -> ?number:int -> ?name:string -> ?type_url:string -> ?oneof_index:int -> ?packed:bool -> ?options:Option.t list -> ?json_name:string -> ?default_value:string -> 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 ]) result
OCaml

Innovation. Community. Security.