diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-15 06:21:52 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-15 06:21:52 +0000 |
commit | a4c842eae14bef20d3d04ee4313251344edf431f (patch) | |
tree | 1685f11fd6bbe9f85cb51d479770b04692250c0c /src/lib.rs | |
parent | 8615cc2f030240ba2982dba893fe63f11a0c8a88 (diff) |
Deserialize Urls and Dates. Also implement custom Id types
Diffstat (limited to 'src/lib.rs')
-rw-r--r-- | src/lib.rs | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -6,11 +6,13 @@ extern crate chrono; #[macro_use] extern crate serde_derive; -mod helix; -mod kraken; +pub mod helix; +pub mod kraken; +pub mod types; -pub use self::helix::endpoints::Client as HelixClient; +pub use self::helix::Client as HelixClient; pub use self::kraken::Client as KrakenClient; +use reqwest::r#async::Client as ReqwestClient; pub struct Client { pub helix: HelixClient, @@ -19,9 +21,13 @@ pub struct Client { impl Client { pub fn new(client_id: &str) -> Client { + let client = ReqwestClient::new(); Client { - helix: HelixClient::new(client_id), - kraken: KrakenClient::new(client_id), + helix: HelixClient::new_with_client(client_id, client.clone()), + kraken: KrakenClient::new_with_client(client_id, client.clone()), } } + + pub fn nop(self) { + } } |