diff options
author | David Blajda <blajda@hotmail.com> | 2019-02-03 22:30:15 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2019-02-03 22:30:15 +0000 |
commit | 96715ceb58b24ee7220d98e421701daa550f44db (patch) | |
tree | 2d00984339efab0549fa07079be623b2a7b634f8 /src/helix/namespaces/videos.rs | |
parent | 0a5892c67fb02e09a621ac8796ac84232935f5c3 (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.rs | 4 |
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) |