package gapi-ocaml

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

    The ID of the last history record that modified this message.

    *)
  2. id : string;
    (*

    The immutable ID of the message.

    *)
  3. internalDate : int64;
    (*

    The internal message creation timestamp (epoch ms), which determines ordering in the inbox. For normal SMTP-received email, this represents the time the message was originally accepted by Google, which is more reliable than the Date header. However, for API-migrated mail, it can be configured by client to be based on the Date header.

    *)
  4. labelIds : string list;
    (*

    List of IDs of labels applied to this message.

    *)
  5. payload : MessagePart.t;
    (*

    The parsed email structure in the message parts.

    *)
  6. raw : string;
    (*

    The entire email message in an RFC 2822 formatted and base64url encoded string. Returned in messages.get and drafts.get responses when the format=RAW parameter is supplied.

    *)
  7. sizeEstimate : int;
    (*

    Estimated size in bytes of the message.

    *)
  8. snippet : string;
    (*

    A short part of the message text.

    *)
  9. threadId : string;
    (*

    The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met:

    • The requested threadId must be specified on the Message or Draft.Message you supply with your request.
    • The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard.
    • The Subject headers must match.
    *)
}
val historyId : (t, string) GapiLens.t
val id : (t, string) GapiLens.t
val internalDate : (t, int64) GapiLens.t
val labelIds : (t, string list) GapiLens.t
val payload : (t, MessagePart.t) GapiLens.t
val raw : (t, string) GapiLens.t
val sizeEstimate : (t, int) GapiLens.t
val snippet : (t, string) GapiLens.t
val threadId : (t, string) 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