From 876fe4bd1f64ecd131947d327e587c1aa295e32e Mon Sep 17 00:00:00 2001 From: metamuffin Date: Tue, 13 Jun 2023 22:54:53 +0200 Subject: fix tmdb schema --- tools/src/tmdb.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tools/src/tmdb.rs') diff --git a/tools/src/tmdb.rs b/tools/src/tmdb.rs index c17adab..d451a95 100644 --- a/tools/src/tmdb.rs +++ b/tools/src/tmdb.rs @@ -14,14 +14,14 @@ pub struct TmdbQuery { #[derive(Debug, Clone, Deserialize)] pub struct TmdbQueryResult { pub adult: bool, - pub backdrop_path: String, + pub backdrop_path: Option, pub genre_ids: Vec, pub id: u64, pub original_language: String, pub original_title: String, pub overview: String, pub popularity: f64, - pub poster_path: String, + pub poster_path: Option, pub release_date: String, pub title: String, pub video: bool, @@ -46,11 +46,11 @@ pub struct TmdbDetails { pub vote_average: f64, pub vote_count: usize, pub budget: usize, - pub homepage: String, - pub imdb_id: String, + pub homepage: Option, + pub imdb_id: Option, pub production_companies: Vec, pub revenue: usize, - pub tagline: String, + pub tagline: Option, } #[derive(Debug, Clone, Deserialize)] -- cgit v1.2.3-70-g09d2