async_google_apis_common/
lib.rs1mod error;
9pub use error::*;
10mod http;
11pub use http::*;
12
13mod multipart;
14
15pub use hyper;
16pub use log::{debug, error, info, trace, warn};
17pub use serde;
18pub use serde_json;
19pub use yup_oauth2;
20
21pub use anyhow::{Error, Result};
22pub use chrono::{DateTime, Utc};
23pub use percent_encoding::{percent_encode, NON_ALPHANUMERIC};
24pub use serde::{de::DeserializeOwned, Deserialize, Serialize};
25pub use std::collections::HashMap;
26pub use tokio_stream::StreamExt;
27
28pub type Authenticator = yup_oauth2::authenticator::Authenticator<TlsConnr>;
29pub type TlsClient = hyper::Client<TlsConnr, hyper::Body>;
30pub type TlsConnr = hyper_rustls::HttpsConnector<hyper::client::HttpConnector>;
31
32pub trait DerefAuth: std::ops::Deref<Target=Authenticator> + Send + Sync {}
33
34impl<T> DerefAuth for T
35where T: std::ops::Deref<Target=Authenticator> + Send + Sync {}