Struct google_gmail1::api::MessagePart[][src]

pub struct MessagePart {
    pub body: Option<MessagePartBody>,
    pub filename: Option<String>,
    pub headers: Option<Vec<MessagePartHeader>>,
    pub mime_type: Option<String>,
    pub part_id: Option<String>,
    pub parts: Option<Vec<MessagePart>>,
}
Expand description

A single MIME message part.

This type is not used in any activity, and only used as part of another schema.

Fields

body: Option<MessagePartBody>

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

filename: Option<String>

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

headers: Option<Vec<MessagePartHeader>>

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.

mime_type: Option<String>

The MIME type of the message part.

part_id: Option<String>

The immutable ID of the message part.

parts: Option<Vec<MessagePart>>

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.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.