View Source GoogleApi.Gmail.V1.Model.MessagePartBody (google_api_gmail v0.16.0)

The body of a single MIME message part.

Attributes

  • attachmentId (type: String.t, default: nil) - When present, contains the ID of an external attachment that can be retrieved in a separate messages.attachments.get request. When not present, the entire content of the message part body is contained in the data field.
  • data (type: String.t, default: nil) - The body data of a MIME message part as a base64url encoded string. May be empty for MIME container types that have no message body or when the body data is sent as a separate attachment. An attachment ID is present if the body data is contained in a separate attachment.
  • size (type: integer(), default: nil) - Number of bytes for the message part data (encoding notwithstanding).

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Gmail.V1.Model.MessagePartBody{
  attachmentId: String.t() | nil,
  data: String.t() | nil,
  size: integer() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.