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§
- History
Label Changed - A label-change event in a history record.
- History
List Response - Response envelope for
GET /gmail/v1/users/{userId}/history. - History
Message Added - A message added in a history record.
- History
Message Deleted - A message deleted in a history record.
- History
Message Ref - A
(id, threadId, labelIds)triple, as embedded inmessagesAdded/messagesDeletedhistory events. - History
Record - One entry in the mailbox’s change history.
- Label
- A Gmail label.
- Label
Color - A label’s display colour.
- Label
List Response - Response envelope for
GET /gmail/v1/users/{userId}/labels. - Message
- A Gmail message.
- Message
List Response - Response envelope for
GET /gmail/v1/users/{userId}/messages. - Message
Ref - A bare
(id, threadId)pair, as returned bymessages.listwithout fetching each message’s full content. - Thread
- A Gmail thread.
- Thread
List Response - Response envelope for
GET /gmail/v1/users/{userId}/threads. - Thread
Ref - A thread reference, as returned by
threads.list.