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§
- Date
Time - ISO 8601 combined date and time with time zone.
- Download
- An ongoing download.
- Empty
Request - This type is used as type parameter to the following functions, when
rq
isNone
. - Empty
Response - 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.
- Resumable
Upload - 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
- Download
Result - 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§
- Async
Write Unpin - Deref
Auth - Deserialize
- A data structure that can be deserialized from any data format supported by Serde.
- Deserialize
Owned - 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.
- Stream
Ext - 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