From 678e3d3f28cb8594204dc5e2b7597ae66a4582c7 Mon Sep 17 00:00:00 2001 From: David Blajda Date: Thu, 27 Dec 2018 22:03:23 +0000 Subject: Use Id types for endpoints and implement kraken headers --- src/helix/models.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src/helix/models.rs') 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, #[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, pub viewable: String, pub view_count: i32, pub language: String, -- cgit v1.2.3