view async-google-apis-common/src/lib.rs @ 165:fcfb1b97873d

Small fix to amend previous commit: Scope generation
author Lewin Bormann <lbo@spheniscida.de>
date Fri, 27 Nov 2020 20:27:38 +0100
parents 171be899018e
children 1302eeaccf20
line wrap: on
line source

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

mod error;
pub use error::*;
mod http;
pub use http::*;

mod multipart;

pub use hyper;
pub use log::{debug, error, info, trace, warn};
pub use serde;
pub use serde_json;
pub use yup_oauth2;

pub use anyhow::{Error, Result};
pub use chrono::{DateTime, Utc};
pub use percent_encoding::{percent_encode, NON_ALPHANUMERIC};
pub use serde::{de::DeserializeOwned, Deserialize, Serialize};
pub use std::collections::HashMap;
pub use tokio::stream::StreamExt;

pub type Authenticator = yup_oauth2::authenticator::Authenticator<TlsConnr>;
pub type TlsClient = hyper::Client<TlsConnr, hyper::Body>;
pub type TlsConnr = hyper_rustls::HttpsConnector<hyper::client::HttpConnector>;