diff options
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 24 |
1 files changed, 2 insertions, 22 deletions
@@ -10,15 +10,13 @@ pub mod helix; pub mod kraken; pub mod types; pub mod error; +pub mod sync; + pub use self::helix::Client as HelixClient; pub use self::kraken::Client as KrakenClient; use reqwest::r#async::Client as ReqwestClient; -use reqwest::header::HeaderMap; -use std::marker::PhantomData; -use std::sync::Arc; -use std::collections::BTreeMap; pub struct Client { pub helix: HelixClient, @@ -34,21 +32,3 @@ impl Client { } } } - -trait Request<T> { - fn url(&self) -> String; - fn headers(&self) -> &HeaderMap; - fn query(&self) -> &BTreeMap<String, String>; - fn returns(&self) -> T; -} - -pub struct GetRequest<T> { - inner: Arc<GetRequestRef<T>>, -} - -struct GetRequestRef<T> { - url: String, -// headers: HeaderMap, -// query: BTreeMap<String, String>, - returns: PhantomData<T>, -} |