Module GapiGmailV1Model.MessagePart

module MessagePart: sig .. end

type t = {
   body : GapiGmailV1Model.MessagePartBody.t; (*
The message part body for this part, which may be empty for container MIME message parts.
*)
   filename : string; (*
The filename of the attachment. Only present if this message part represents an attachment.
*)
   headers : GapiGmailV1Model.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.
*)
   mimeType : string; (*
The MIME type of the message part.
*)
   partId : string; (*
The immutable ID of the message part.
*)
   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 body : (t, GapiGmailV1Model.MessagePartBody.t)
GapiLens.t
val filename : (t, string) GapiLens.t
val headers : (t, GapiGmailV1Model.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