package gapi-ocaml

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. body : MessagePartBody.t;
    (*

    The message part body for this part, which may be empty for container MIME message parts.

    *)
  2. filename : string;
    (*

    The filename of the attachment. Only present if this message part represents an attachment.

    *)
  3. headers : MessagePartHeader.t list;
    (*

    List of headers on this message part. For the top-level message part, representing the entire message payload, it will contain the standard RFC 2822 email headers such as To, From, and Subject.

    *)
  4. mimeType : string;
    (*

    The MIME type of the message part.

    *)
  5. partId : string;
    (*

    The immutable ID of the message part.

    *)
  6. parts : t list;
    (*

    The child MIME message parts of this part. This only applies to container MIME message parts, for example multipart/*. For non- container MIME message part types, such as text/plain, this field is empty. For more information, see RFC 1521.

    *)
}
val filename : (t, string) GapiLens.t
val headers : (t, MessagePartHeader.t list) GapiLens.t
val mimeType : (t, string) GapiLens.t
val partId : (t, string) GapiLens.t
val parts : (t, t list) GapiLens.t
val empty : t
val render : t -> GapiJson.json_data_model list
val parse : t -> GapiJson.json_data_model -> t
val to_data_model : t -> GapiJson.json_data_model
val of_data_model : GapiJson.json_data_model -> t
OCaml

Innovation. Community. Security.