Expand description
Gmail Messages API wrapper.
messages.list uses cursor pagination (nextPageToken), like
Datadog’s v2 logs search — MessagesApi::search issues a single page,
MessagesApi::search_all auto-paginates up to a caller-supplied limit
(or HARD_CAP when the limit is 0), and
MessagesApi::search_all_unbounded_streaming auto-paginates with no cap at all
for gmail sync’s full-listing pass (#1467). Gmail’s list endpoint is
GET-with-query-params (not POST-with-body like Datadog’s logs search),
so URL construction follows the free build_*_url pattern from
src/datadog/monitors_api.rs instead.
Structs§
- Message
Summary - A search hit enriched with the headers a search-result table/list needs.
- Messages
Api - Messages API façade.
Enums§
- Message
Format - The
formatquery parameter accepted bymessages.get.
Constants§
- DEFAULT_
SEARCH_ LIMIT - Default
limitfor a search when the caller doesn’t specify one. - GMAIL_
QUOTA_ UNITS_ PER_ SECOND - Gmail’s documented quota ceiling, in quota units per user per second.
- HARD_
CAP - Per-call upper bound on the number of messages returned by
MessagesApi::search_all, even when the caller passeslimit = 0. - MAX_
CONCURRENCY - Upper bound on
MessagesApi::search_summaries’sconcurrencyparameter, regardless of what the caller (CLI--concurrencyor the MCPconcurrencyparam) requests. - MAX_
PAGE_ LIMIT - Maximum page size accepted by
GET /gmail/v1/users/{userId}/messages. - MESSAGES_
GET_ COST_ UNITS - Quota-unit cost of one
messages.getcall, regardless offormat. - MESSAGES_
LIST_ COST_ UNITS - Quota-unit cost of one
messages.listpage request.