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/mod.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'src/helix/namespaces/mod.rs') diff --git a/src/helix/namespaces/mod.rs b/src/helix/namespaces/mod.rs index d1c44bd..1c0d08e 100644 --- a/src/helix/namespaces/mod.rs +++ b/src/helix/namespaces/mod.rs @@ -1,4 +1,21 @@ +use std::marker::PhantomData; +use super::Client; + pub mod clips; pub mod users; pub mod videos; pub mod auth; + +pub struct Namespace { + client: Client, + _type: PhantomData +} + +impl Namespace { + pub fn new(client: &Client) -> Self { + Namespace { + client: client.clone(), + _type: PhantomData, + } + } +} -- cgit v1.2.3