diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-30 20:08:09 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-30 20:08:09 +0000 |
commit | 70629ed0dc950d4f1c83ef15a6b4b65700338d3d (patch) | |
tree | 0060290b9d1a5b19e137a31ba387150fccff639e /src/helix/models.rs | |
parent | 96a500350c29106e87bc22839c502e98459b4cb0 (diff) |
:WIP: Reworking types
Diffstat (limited to 'src/helix/models.rs')
-rw-r--r-- | src/helix/models.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/helix/models.rs b/src/helix/models.rs index 5a35869..af221bc 100644 --- a/src/helix/models.rs +++ b/src/helix/models.rs @@ -47,8 +47,8 @@ pub struct Cursor { #[derive(Debug, Deserialize)] pub struct Video { - pub id: VideoId, - pub user_id: UserId, + pub id: VideoId<'static>, + pub user_id: UserId<'static>, pub user_name: String, pub title: String, pub description: String, @@ -72,7 +72,7 @@ pub struct Video { #[derive(Debug, Deserialize)] pub struct User { - pub id: UserId, + pub id: UserId<'static>, pub login: String, pub display_name: String, #[serde(rename = "type")] @@ -94,11 +94,11 @@ pub struct Clip { pub url: Url, #[serde(with = "url_serde")] pub embed_url: Url, - pub broadcaster_id: ChannelId, + pub broadcaster_id: ChannelId<'static>, pub broadcaster_name: String, - pub creator_id: UserId, + pub creator_id: UserId<'static>, pub creator_name: String, - pub video_id: VideoId, + pub video_id: VideoId<'static>, pub game_id: String, pub language: String, pub title: String, |