From 0e09c2c06fc0b81f11d12985a4172c815233db17 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Wed, 8 May 2019 15:15:42 +0000 Subject: Refactor Ids again and cargo update --- src/helix/models.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/helix/models.rs') diff --git a/src/helix/models.rs b/src/helix/models.rs index e63a9f4..1e9f0ec 100644 --- a/src/helix/models.rs +++ b/src/helix/models.rs @@ -47,8 +47,8 @@ pub struct Cursor { #[derive(Debug, Deserialize, Serialize)] pub struct Video { - pub id: VideoId<'static>, - pub user_id: UserId<'static>, + pub id: VideoId, + pub user_id: UserId, pub user_name: String, pub title: String, pub description: String, @@ -72,7 +72,7 @@ pub struct Video { #[derive(Debug, Deserialize, Serialize)] pub struct User { - pub id: UserId<'static>, + pub id: UserId, 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<'static>, + pub broadcaster_id: ChannelId, pub broadcaster_name: String, - pub creator_id: UserId<'static>, + pub creator_id: UserId, pub creator_name: String, - pub video_id: VideoId<'static>, + pub video_id: VideoId, pub game_id: String, pub language: String, pub title: String, -- cgit v1.2.3