From 298806448db4a4e74306ec648bfc0e43a76c6bc3 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Thu, 20 Dec 2018 23:42:45 +0000 Subject: Split auth and unauth client and created ClientTrait --- src/helix/namespaces/users.rs | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'src/helix/namespaces/users.rs') 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; impl UsersNamespace { + /* pub fn users(self, id: Vec<&str>, login: Vec<&str>) -> impl Future, 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) } +*/ -- cgit v1.2.3