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
- Logs a message at the debug level.
- Logs a message at the error level.
- Logs a message at the info level.
- Logs a message at the trace level.
- Logs a message at the warn level.
Structs
- ISO 8601 combined date and time with time zone.
- An ongoing download.
- This type is used as type parameter to the following functions, when
rq
isNone
. - This type is used as type parameter for when no response is expected.
- The
Error
type, a wrapper around a dynamic error type. - A hash map implemented with quadratic probing and SIMD lookup.
- A resumable upload in progress, useful for sending large objects.
- 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
- Result of a method that can (but doesn’t always) download data.
Constants
- Everything that is not an ASCII letter or digit.
Traits
- A data structure that can be deserialized from any data format supported by Serde.
- A data structure that can be deserialized without borrowing any data from the deserializer.
- A data structure that can be serialized into any data format supported by Serde.
- An extension trait for the
Stream
trait that provides a variety of convenient combinator functions.
Functions
- The Content-Type header is set automatically to application/json.
- The Content-Type header is set automatically to application/json. Also returns response headers.
- The Content-Length header is set automatically.
- Percent-encode the given bytes with the given set.
Type Definitions
Result<T, Error>