Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MessagePartBody

import type { MessagePartBody } from "https://googleapis.deno.dev/v1/gmail:v1.ts";

The body of a single MIME message part.

interface MessagePartBody {
attachmentId?: string;
data?: Uint8Array;
size?: number;
}

§Properties

§
attachmentId?: string
[src]

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?: Uint8Array
[src]

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?: number
[src]

Number of bytes for the message part data (encoding notwithstanding).