summaryrefslogtreecommitdiff
path: root/src/helix/models.rs
diff options
context:
space:
mode:
authorDavid Blajda <blajda@hotmail.com>2019-05-08 15:15:42 +0000
committerDavid Blajda <blajda@hotmail.com>2019-05-08 15:15:42 +0000
commit0e09c2c06fc0b81f11d12985a4172c815233db17 (patch)
treead1073380dd3031083bdeafe0cff0c3f7f667df7 /src/helix/models.rs
parent96715ceb58b24ee7220d98e421701daa550f44db (diff)
Refactor Ids again and cargo update
Diffstat (limited to 'src/helix/models.rs')
-rw-r--r--src/helix/models.rs12
1 files changed, 6 insertions, 6 deletions
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,