package caisar

  1. Overview
  2. Docs

Defines information on value, including the name, the type, and the shape of the value.

type t = {
  1. name : string option;
    (*

    This field MUST be present in this version of the IR.

    namespace Value

    *)
  2. type' : TypeProto.t option;
    (*

    This field MUST be present in this version of the IR for inputs and outputs of the top-level graph.

    *)
  3. doc_string : string option;
    (*

    A human-readable documentation for this value. Markdown is allowed.

    *)
}
val make : ?name:string -> ?type':TypeProto.t -> ?doc_string:string -> unit -> t

Helper function to generate a message using default values

Serialize the message to binary format

Deserialize from binary format

Serialize to Json (compatible with Yojson.Basic.t)

Deserialize from Json (compatible with Yojson.Basic.t)

val name : unit -> string

Fully qualified protobuf name of this message

OCaml

Innovation. Community. Security.