summaryrefslogtreecommitdiff
path: root/src/helix/namespaces/users.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2018-12-20 23:42:45 +0000
committerDavid Blajda <blajda@hotmail.com>2018-12-20 23:42:45 +0000
commit298806448db4a4e74306ec648bfc0e43a76c6bc3 (patch)
tree1cdd90df0d65a513ad94588dae7621b03a906b3e /src/helix/namespaces/users.rs
parent2bae9a4e8d8b77f8a99df6829547a60f883632a3 (diff)
Split auth and unauth client and created ClientTrait
Diffstat (limited to 'src/helix/namespaces/users.rs')
-rw-r--r--src/helix/namespaces/users.rs14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/helix/namespaces/users.rs b/src/helix/namespaces/users.rs
index c809b95..3e4f1dd 100644
--- a/src/helix/namespaces/users.rs
+++ b/src/helix/namespaces/users.rs
@@ -3,25 +3,28 @@ use super::super::models::{DataContainer, PaginationContainer, User, Video, Clip
use super::super::Client;
use std::collections::BTreeMap;
const API_DOMAIN: &'static str = "api.twitch.tv";
-use super::super::Namespace;
+use super::Namespace;
pub struct Users {}
type UsersNamespace = Namespace<Users>;
impl UsersNamespace {
+ /*
pub fn users(self, id: Vec<&str>, login: Vec<&str>) -> impl Future<Item=DataContainer<User>, Error=reqwest::Error> {
- use self::users;
- users(self.client, id, login)
+ //use self::users;
+ //users(self.client, id, login)
}
+ */
}
-
+/*
impl Client {
pub fn users(&self) -> UsersNamespace {
UsersNamespace::new(self)
}
}
-
+*/
+/*
pub fn users(
client: Client,
id: Vec<&str>,
@@ -50,3 +53,4 @@ pub fn users(
})
.and_then(|json| json)
}
+*/