Struct google_gmail1::api::Message[][src]

pub struct Message {
    pub history_id: Option<String>,
    pub id: Option<String>,
    pub internal_date: Option<String>,
    pub label_ids: Option<Vec<String>>,
    pub payload: Option<MessagePart>,
    pub raw: Option<String>,
    pub size_estimate: Option<i32>,
    pub snippet: Option<String>,
    pub thread_id: Option<String>,
}

An email message.

Activities

This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).

Fields

history_id: Option<String>

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

id: Option<String>

The immutable ID of the message.

internal_date: Option<String>

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.

label_ids: Option<Vec<String>>

List of IDs of labels applied to this message.

payload: Option<MessagePart>

The parsed email structure in the message parts.

raw: Option<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.

size_estimate: Option<i32>

Estimated size in bytes of the message.

snippet: Option<String>

A short part of the message text.

thread_id: Option<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: 1. The requested threadId must be specified on the Message or Draft.Message you supply with your request. 2. The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard. 3. The Subject headers must match.

Trait Implementations

impl Clone for Message[src]

impl Debug for Message[src]

impl Default for Message[src]

impl<'de> Deserialize<'de> for Message[src]

impl RequestValue for Message[src]

impl ResponseResult for Message[src]

impl Serialize for Message[src]

Auto Trait Implementations

impl RefUnwindSafe for Message

impl Send for Message

impl Sync for Message

impl Unpin for Message

impl UnwindSafe for Message

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.