Struct google_gmail1::Message
source · pub struct Message {
pub internal_date: Option<String>,
pub history_id: Option<String>,
pub id: Option<String>,
pub snippet: Option<String>,
pub raw: Option<String>,
pub size_estimate: Option<i32>,
pub thread_id: Option<String>,
pub label_ids: Option<Vec<String>>,
pub payload: Option<MessagePart>,
}
Expand description
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).
- messages untrash users (response)
- messages get users (response)
- messages modify users (response)
- messages import users (request|response)
- messages insert users (request|response)
- messages send users (request|response)
- messages trash users (response)
- drafts send users (response)
Fields§
§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.
history_id: Option<String>
The ID of the last history record that modified this message.
id: Option<String>
The immutable ID of the message.
snippet: Option<String>
A short part of the message text.
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.
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:
- The requested threadId must be specified on the Message or Draft.Message you supply with your request.
- The References and In-Reply-To headers must be set in compliance with the RFC 2822 standard.
- The Subject headers must match.
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.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Message
impl<'de> Deserialize<'de> for Message
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for Message
impl ResponseResult for Message
Auto Trait Implementations§
impl Freeze for Message
impl RefUnwindSafe for Message
impl Send for Message
impl Sync for Message
impl Unpin for Message
impl UnwindSafe for Message
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more