diff options
author | David Blajda <blajda@hotmail.com> | 2018-12-27 22:03:23 +0000 |
---|---|---|
committer | David Blajda <blajda@hotmail.com> | 2018-12-27 22:03:23 +0000 |
commit | 678e3d3f28cb8594204dc5e2b7597ae66a4582c7 (patch) | |
tree | 55b563cfdc09dab8f18c1f4d688ebf0c2187985c /src/helix/models.rs | |
parent | cb1b144e48ee357a76f551433d4886f092d259c8 (diff) |
Use Id types for endpoints and implement kraken headers
Diffstat (limited to 'src/helix/models.rs')
-rw-r--r-- | src/helix/models.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/helix/models.rs b/src/helix/models.rs index 47a1288..4c1566c 100644 --- a/src/helix/models.rs +++ b/src/helix/models.rs @@ -56,8 +56,11 @@ pub struct Video { pub published_at: DateTime<Utc>, #[serde(with = "url_serde")] pub url: Url, - #[serde(with = "url_serde")] - pub thumbnail_url: Url, + /*FIXME: Serde will attempt to parse an empty string. + * In this case this should be None when thumbnail_url is an empty string + */ + //#[serde(with = "url_serde")] + pub thumbnail_url: String, //Option<Url>, pub viewable: String, pub view_count: i32, pub language: String, |