summaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-15 06:21:52 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-15 06:21:52 +0000
commita4c842eae14bef20d3d04ee4313251344edf431f (patch)
tree1685f11fd6bbe9f85cb51d479770b04692250c0c /src/lib.rs
parent8615cc2f030240ba2982dba893fe63f11a0c8a88 (diff)
Deserialize Urls and Dates. Also implement custom Id types
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs16
1 files changed, 11 insertions, 5 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 06239b9..e0100fa 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -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) {
+ }
}