Skip to main content

Module types

Module types 

Source
Expand description

Wire types for the Gmail v1 REST API.

Field naming follows Gmail’s camelCase JSON via per-field #[serde(rename = "...")] (matching the Jira precedent for a camelCase upstream API, not Datadog’s snake_case-native one). Message::payload/raw are the MIME-tree escape hatch: the per-part MIME structure is deeply recursive and heterogeneous, so it round-trips as raw serde_json::Value rather than being modelled — the same precedent as Dashboard.widgets in src/datadog/types.rs.

Structs§

HistoryLabelChanged
A label-change event in a history record.
HistoryListResponse
Response envelope for GET /gmail/v1/users/{userId}/history.
HistoryMessageAdded
A message added in a history record.
HistoryMessageDeleted
A message deleted in a history record.
HistoryMessageRef
A (id, threadId, labelIds) triple, as embedded in messagesAdded/messagesDeleted history events.
HistoryRecord
One entry in the mailbox’s change history.
Label
A Gmail label.
LabelColor
A label’s display colour.
LabelListResponse
Response envelope for GET /gmail/v1/users/{userId}/labels.
Message
A Gmail message.
MessageListResponse
Response envelope for GET /gmail/v1/users/{userId}/messages.
MessageRef
A bare (id, threadId) pair, as returned by messages.list without fetching each message’s full content.
Thread
A Gmail thread.
ThreadListResponse
Response envelope for GET /gmail/v1/users/{userId}/threads.
ThreadRef
A thread reference, as returned by threads.list.