Crate async_google_apis_common

Source
Expand description

Common types, imports, and functions used by generated code, including HTTP requests and error types.

This is not very useful on its own – check out async-google-apis on github. It is a code generator, which generates code that utilizes this crate.

Re-exports§

pub use hyper;
pub use serde;
pub use serde_json;
pub use yup_oauth2;

Macros§

debug
Logs a message at the debug level.
error
Logs a message at the error level.
info
Logs a message at the info level.
trace
Logs a message at the trace level.
warn
Logs a message at the warn level.

Structs§

DateTime
ISO 8601 combined date and time with time zone.
Download
An ongoing download.
EmptyRequest
This type is used as type parameter to the following functions, when rq is None.
EmptyResponse
This type is used as type parameter for when no response is expected.
Error
The Error type, a wrapper around a dynamic error type.
HashMap
A hash map implemented with quadratic probing and SIMD lookup.
ResumableUpload
A resumable upload in progress, useful for sending large objects.
Utc
The UTC time zone. This is the most efficient time zone when you don’t need the local time. It is also used as an offset (which is also a dummy type).

Enums§

ApiError
DownloadResult
Result of a method that can (but doesn’t always) download data.

Constants§

NON_ALPHANUMERIC
Everything that is not an ASCII letter or digit.

Traits§

AsyncWriteUnpin
DerefAuth
Deserialize
A data structure that can be deserialized from any data format supported by Serde.
DeserializeOwned
A data structure that can be deserialized without borrowing any data from the deserializer.
Serialize
A data structure that can be serialized into any data format supported by Serde.
StreamExt
An extension trait for the Stream trait that provides a variety of convenient combinator functions.

Functions§

do_download
do_request
The Content-Type header is set automatically to application/json.
do_request_with_headers
The Content-Type header is set automatically to application/json. Also returns response headers.
do_upload_multipart
The Content-Length header is set automatically.
percent_encode
Percent-encode the given bytes with the given set.

Type Aliases§

Authenticator
Result
Result<T, Error>
TlsClient
TlsConnr

Derive Macros§

Deserialize
Serialize