Skip to main content

Module send

Module send 

Source
Expand description

HTTP/JSON transport every Gmail coroutine delegates to.

Builds the authorized request and parses the JSON response, or the Gmail error envelope on failure.

Gmail API reference: https://developers.google.com/gmail/api/reference/rest.

Structs§

GmailNoResponse
Unit marker deserialized from empty 2xx bodies (DELETE, batch operations, stop).
GmailSend
I/O-free coroutine sending one authorized HTTP request and parsing the JSON response into T.
GmailSendOutput
Terminal value of a successful Gmail exchange.

Enums§

GmailSendError
Errors that can occur during a Gmail exchange.

Constants§

GMAIL_API_BASE
Base URL of the Gmail REST API v1.

Functions§

parse_api_error
Parses Gmail’s JSON error envelope, falling back to the raw body; returns the effective status code and message.