summaryrefslogtreecommitdiff
path: root/src/helix/namespaces/videos.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2019-02-03 22:30:15 +0000
committerDavid Blajda <blajda@hotmail.com>2019-02-03 22:30:15 +0000
commit96715ceb58b24ee7220d98e421701daa550f44db (patch)
tree2d00984339efab0549fa07079be623b2a7b634f8 /src/helix/namespaces/videos.rs
parent0a5892c67fb02e09a621ac8796ac84232935f5c3 (diff)
Add Helix and Kraken scopes. Client Config and allow injecting of responses
Diffstat (limited to 'src/helix/namespaces/videos.rs')
-rw-r--r--src/helix/namespaces/videos.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helix/namespaces/videos.rs b/src/helix/namespaces/videos.rs
index 9f2fd2b..b603b8f 100644
--- a/src/helix/namespaces/videos.rs
+++ b/src/helix/namespaces/videos.rs
@@ -13,13 +13,13 @@ impl VideosNamespace {
by_id(self.client, ids)
}
- pub fn by_user(self, user_id: &UserId)
+ pub fn by_user<S: ToString>(self, user_id: &S)
-> IterableApiRequest<PaginationContainer<Video>> {
use self::by_user;
by_user(self.client, user_id)
}
- pub fn for_game(self, game_id: &GameId)
+ pub fn for_game<S: ToString>(self, game_id: &S)
-> IterableApiRequest<PaginationContainer<Video>> {
use self::for_game;
for_game(self.client, game_id)